Files
vue-chartjs/src/examples/ReactivePropExample.js
2018-02-05 13:32:05 +01:00

18 lines
311 B
JavaScript

import { Bar } from '../BaseCharts'
import { reactiveProp } from '../mixins'
export default {
extends: Bar,
mixins: [reactiveProp],
data: () => ({
options: {
responsive: true,
maintainAspectRatio: false
}
}),
mounted () {
this.renderChart(this.chartData, this.options)
}
}