Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

2.x .update() instanciating

Open zprisk opened this issue 10 years ago • 2 comments

TYPE: Doughnut

I am running into an issue where I am updating the .config.data (datasets & labels) with new data and then calling .update() on the chart. Everything appears to work great at first glace. The chart updates, animates, and everything. However, when hovering over certain pieces (it will show the correct tool tip data, too), all of the sudden the original, first set of data will appear.

Any thoughts on what/where I can look into this specifically?

zprisk avatar May 09 '16 22:05 zprisk

@zprisk Can you please post a fiddle?

panzarino avatar May 09 '16 22:05 panzarino

@zachpanz88 Upon further review, this does not appear to be a bug, I don't think. What I believe is happening is in my wrapper of ChartJS I am unintentionally instancing new instances (Chart.instances) upon update attempt.

zprisk avatar May 09 '16 23:05 zprisk