Files
cssd-back/node_modules/vue-chartjs/es/examples/ReactivePropExample.js
T
2019-07-15 13:07:31 +04:30

17 lines
365 B
JavaScript
Vendored

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