Nuxt/examples/dynamic-components/components/chart.js

10 lines
139 B
JavaScript
Raw Normal View History

import { Bar } from 'vue-chartjs'
2017-09-21 20:27:30 +00:00
export default {
extends: Bar,
props: ['data'],
mounted() {
this.renderChart(this.data)
}
2017-09-21 20:27:30 +00:00
}