You must be logged in to post your query.
Home › Forums › Report Bugs › Resetting the multiple graph
Hello, I am setting the viewport data to graph using following methods: chart.axisY[0].set(“viewportMinimum”, min.value); chart.axisY[0].set(“viewportMaximum”, max.value);
but after setting the value, In resetting graph part I am using the following code
if (e.trigger === “reset”) { chart.axisY[0].set(“viewportMinimum”, null); chart.axisY[0].set(“viewportMaximum”, null);
chart.render(); }
using this code graph not reset. I also checked this link: https://canvasjs.com/docs/charts/how-to/sync-across-multiple-charts/ any another way to reset the graph?
@vaibhavgodambe,
Please take a look at this example.
Also, you need to set the the third parameter i.e. updateChart to false in set() method. Please refer this documentation page for more information on set().
false
You must be logged in to reply to this topic. Login/Register