vue-charts
vue-charts copied to clipboard
Pie charts seem broken
Although bar charts work fine, when I switch the type to Pie, I get `"TypeError: undefined is not a function"' in the console and the chart does not load.
Here is my component:
<template>
<chartjs-pie :datalabel="mylabel" :labels="mylabels" :data="mydata"></chartjs-pie>
</template>
<script>
export default {
name: 'PieChart',
data () {
return {
mylabel: 'TestDataLabel',
mylabels: ['happy', 'myhappy', 'hello'],
mydata: [100, 40, 60]
}
},
}
</script>
<style>
</style>
Did you solve that issue? Duplicate of #31