GimmyHchs / vue-charts

Base on Vue2.0 wrapper for ChartJs. (Deprecated)
MIT License
357 stars 84 forks source link

Pie charts seem broken #31

Open ssuess opened 7 years ago

ssuess commented 7 years ago

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>
muhammetakkus commented 6 years ago

Did you solve that issue? Duplicate of #31