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