javascript - C3js - Uncaught TypeError: Cannot read property 'data' of null -
the error message re-created in demo:
http://plnkr.co/edit/6tok16u287skhqpsramx?p=preview
var chart = c3.generate({ data: { "columns": [["b1", 1], ["b2", 2]], "type": "donut", onclick: onclick, }, donut: { "title": "iris petal width" } }); function onclick(){ chart.load({ columns: [['a_b1', 1], ['b_b1', 2]], unload: ['b1', 'b2'] }); }
the documentation function here:
http://c3js.org/reference.html#api-load
do think i'm using wrong or it's bug in library?
--reponse comment-- error occurs in fiddle when section of donut clicked.
if watch transition animation closely can see hesitate when rendering different sections of donut. these errors occur after rendering.
Comments
Post a Comment