Nuxt/examples/vue-chartjs/components/bar-chart.js

9 lines
160 B
JavaScript
Raw Normal View History

2017-08-24 09:36:41 +00:00
import { Bar } from 'vue-chartjs'
export default Bar.extend({
props: ['data', 'options'],
2017-10-31 13:43:55 +00:00
mounted() {
2017-08-24 09:36:41 +00:00
this.renderChart(this.data, this.options)
}
})