Home forums Report Bugs Resetting the multiple graph

This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 2 months, 1 week ago.

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

    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?

    #15799

    Indranil Deo
    Member

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

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

You must be logged in to reply to this topic.