This repository has been archived by the owner on Apr 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Cannot read property 'beginAtZero' of undefined #33
Comments
@moonlik do you have a demo of how you got it working? I tried But is still didn't work. |
@craigharman I just added <template>
...
<chartjs-pie
v-bind:labels="deviceLabels"
v-bind:data="deviceData"
v-bind:backgroundcolor="deviceBackgroundColor"
v-bind:hoverbackgroundcolor="deviceHoverBackgroundColor"
v-bind:bind="true"
v-bind:option="myoption">
</chartjs-pie>
...
</template>
<script>
export default {
data () {
return {
myoption: {},
...
</script> |
@craigharman I also have noticed that after |
1.2.8... happens here too. |
Same here. Can't use pie chart. |
I ended up just using chart.js itself, no wrapper. Works fine & is easy. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
After update to 1.2.8 I got this error:
It's occurred only on Pie chart, Doughnut chart, and Radar chart. After some investigations, I found that if I rewrite options like `v-bind:option="someOption" these charts start to work normally as expected.
I guess could the problem be in the code, where you set option by default as null:
So if the
option: null
, therefore 'beginAtZero' is a property of undefined.The text was updated successfully, but these errors were encountered: