vue-charts icon indicating copy to clipboard operation
vue-charts copied to clipboard

Pie charts seem broken

Open ssuess opened this issue 7 years ago • 1 comments

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>

ssuess avatar Aug 11 '17 20:08 ssuess

Did you solve that issue? Duplicate of #31

muhammetakkus avatar Dec 04 '17 15:12 muhammetakkus