Files
cssd-back/resources/js/vue/Admin/plugins/chart/BarChart.js
T
2019-08-21 13:59:18 +04:30

13 lines
346 B
JavaScript
Vendored

import { Bar, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins
export default {
extends: Bar,
mixins: [reactiveProp],
props: ['options'],
mounted () {
// this.chartData is created in the mixin.
// If you want to pass options please create a local options object
this.renderChart(this.chartData, this.options)
}
}