Home forums Using CanvasJS zoom out in exponential graph when the data grow

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29329

    I have an exponential graph, the graph grows constantly and stops randomly, the graph can reach high numbers, I want to zoom out as the graph grows that way.
    And also eliminate the numbers that the graph has passed in x and y, which will have the feeling that the graph is increasing.
    I know it can be done with:
    this.graph.options.axisY.maximum
    this.graph.options.axisX.maximum
    But that doesn’t help me.
    I’ve been stuck on this for a few days now, I’d love to help.
    example graph:
    https://gamdom.com/crash

    #29340

    @yoziazri,

    Resetting the maximum by setting it to null on adding new dataPoint should work fine in your case.

    Please take a look at this gallery page which shows dynamic chart where maximum is auto-updated when a new dataPoint is added.

    —-
    Manoj Mohan
    Team CanvasJS

    #29344

    Thank you very much Manoj :)

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

You must be logged in to reply to this topic.