π Release new version 2.3.0
Changelog
- Updated dependencies (vue.js & chart.js)
Breaking Change
- Changed mixin module imports. Seperated mixins in own module.
Old way was:
import { reactiveProp } from 'vue-chartjs'
Now:
// Load speperate modules
import { Line, mixins } from 'vue-chartjs'
export default Line.extend({
mixins: [mixins.reactiveProp],
props: ["chartData", "options"],
mounted () {
this.renderChart(this.chartData, this.options)
}
})
or with destructive assign:
// Load speperate modules with destructure assign
import { Line, mixins } from 'vue-chartjs'
const { reactiveProp } = mixins
export default Line.extend({
mixins: [reactiveProp],
props: ["chartData", "options"],
mounted () {
this.renderChart(this.chartData, this.options)
}
})