Home Forums Chart Support redraw chart Reply To: redraw chart

#5230

I cant make it work with the doughnut chart at all.
Take a look at my tests:
https://cabanapps.com.br/valores-vale/TESTS/

It only changes the colors of the graphics, not the values.
What I am doing is setting:
chartTwitter.options.data[0].dataPoints = [my new dataPoints]
and calling
chartTwitter.render();

If I do like in the example:
https://canvasjs.com/docs/charts/how-to/creating-dynamic-charts/
Just updating the dataPoints variable array, nothing happens.

Any help?

Besides that, I couldnt manage to creat charts runtime, instead of using “onLoad”.
It looks like that the way it search for the canvas context get messes up if you dont use onload.
Do you have any workable example that dont use “onload” event to create the chart?