Home forums Using CanvasJS How to redraw chart

This topic contains 1 reply, has 2 voices, and was last updated by  Shashi Ranjan 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26165

    I am doing dymamic chart , all my points are in array linegraph[“test”] ,

    data: [

    {
    type: “line”,
    dataPoints: linegraph[“test”] ,
    axisYIndex : 0,
    color:”rgb(255,0,0,0.4)”,
    axisYType:”secondary”,
    markerBorderColor:”black”,
    markerBorderThickness: 0.9,

    }

    }

    What I need is to empty the linegraph[“test”] , modify with new values and redraw.

    so I am doing linegraph[“test”] = [];
    then adding my values to linegraph[“test”] then running chart.render();

    but chart is not rendering , even though linegraph[“test”] has all the values.

    How do I force canvas js to reread the linegraph[“test”] ?

    #26181

    @adjmpw,

    Can you please create a JSFiddle reproducing the issue you’re facing and share it with us so that we can look into the code, understand it better and help you out?

    ____
    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.