Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

'beginAtZero' of undefined #41

Open
gguney opened this issue Feb 8, 2018 · 1 comment
Open

'beginAtZero' of undefined #41

gguney opened this issue Feb 8, 2018 · 1 comment

Comments

@gguney
Copy link

gguney commented Feb 8, 2018

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.

@rigoparis
Copy link

rigoparis commented Jun 12, 2018

+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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants