Home Forums Report Bugs Resetting the multiple graph

Resetting the multiple graph

Viewing 2 posts - 1 through 2 (of 2 total)
  • #15782

    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);


    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?



    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().

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

You must be logged in to reply to this topic.