<template> <div> <bar-chart :data="data" :options="options"></bar-chart> </div> </template> <script> import { Bar } from 'vue-chartjs' export default { components: { BarChart: Bar }, data() { return { data: { labels: ['January', 'February', 'March', 'April', 'May'], datasets: [{ label: 'Sales', backgroundColor: '#f87979', data: [12, 19, 3, 5, 2] }] }, options: { scales: { yAxes: [{ ticks: { beginAtZero: true } }] } } } } } </script>