npm install vue-chartjs chart.js --save
import { Bar } from 'vue-chartjs' export default { extends: Bar, props: ['data', 'options'], mounted () { this.renderChart(this.data, this.options) } }