Home Forums Chart Support redraw chart

redraw chart

Viewing 5 posts - 1 through 5 (of 5 total)
  • #4859

    i need the function in canvasjs to redraw a dynamic chart with multiple data-series.
    thank you.


    In order to redraw a chart you just need to change the data and call render() method again.


    I cant make it work with the doughnut chart at all.
    Take a look at my 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

    If I do like in the example:

    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?


    Oops, forget about the redraw part.
    Just got it to work.
    But can I animate the redrawing process, as if it was being created for the first time?


    As of now animation is supported only for Pie Charts – during first render. For other charts it isn’t available yet.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.