vue-charts
vue-charts copied to clipboard
'beginAtZero' of undefined
I simply added the example code:
it gives me :
[Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'beginAtZero' of undefined"
I'm using chartjs-line in the same page with no no problem.
+1
I went ahead and tested every chart and it seems it happens on both pie and doughnut charts.
vue.esm.js?efeb:1717 TypeError: Cannot read property 'beginAtZero' of undefined
at ChartElement.mergeTicksOptions (core.scale.js?551b:164)
at eval (core.controller.js?821b:292)
at Object.each (helpers.core.js?de7d:108)
at Chart.buildOrUpdateScales (core.controller.js?821b:261)
at Chart.initialize (core.controller.js?821b:151)
at Chart.construct (core.controller.js?821b:127)
at new Chart (core.js?f88b:42)
at VueComponent.renderChart (vue-charts.min.js?8747:1)
at VueComponent.boundFn [as renderChart] (vue.esm.js?efeb:191)
at VueComponent.initTargetCanvas (vue-charts.min.js?8747:1)