Nuxt/examples/vue-chartjs/components/bar-chart.js
2017-08-24 11:36:41 +02:00

9 lines
161 B
JavaScript

import { Bar } from 'vue-chartjs'
export default Bar.extend({
props: ['data', 'options'],
mounted () {
this.renderChart(this.data, this.options)
}
})