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”] ?