c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.33k stars 1.39k forks source link

Version 0.7 onwards: Uncaught TypeError: Cannot read property 'call' of undefined #2713

Open WouterDev opened 4 years ago

WouterDev commented 4 years ago

First load is ok but as soon as i load the second chart from a button click event and call the c3.generate again i get this error.

I use webpack with VUEJS, if i downgrade to version 0.6 there is no issue.

Can you fix bug below please?

c3.js:7691 Uncaught TypeError: Cannot read property 'call' of undefined at ChartInternal.getRatio (c3.js:7691) at ChartInternal.textForArcLabel (c3.js:5649) at SVGTextElement.eval (text.js:14) at Selection.eval [as each] (each.js:6) at Selection.eval [as text] (text.js:21) at ChartInternal.redrawArc (c3.js:5967) at ChartInternal.redraw (c3.js:1848) at ChartInternal.initWithData (c3.js:1538) at ChartInternal.init (c3.js:1270) at new Chart (c3.js:82)