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

10 lines
139 B
JavaScript

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