0👍
You’re passing chartData
but using datacollection
inside component.
Please try updating:
import { Line, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins
export default {
extends: Line,
mixins: [reactiveProp],
props: ['options', 'chartData'],
mounted () {
// this.chartData is created in the mixin.
// If you want to pass options please create a local options object
this.renderChart(this.chartData, this.options)
}
}
- [Vuejs]-Vue.js, Router importing template vue file
- [Vuejs]-Vuejs onclick behaviour on template's component
Source:stackexchange.com