Home Forums Chart Support Dynamic chart axis with timer

Dynamic chart axis with timer

Viewing 5 posts - 1 through 5 (of 5 total)
  • #17841

    Hello everybody, I need help from all of you please help me. I want to make axis increase value by set timer but I also don’t want to show it like time value, I need to show normal number. I’m sorry if I write something wrong.

    #17856

    @rayateng,

    Are you trying to change axisX.maximum? Also, can you kindly brief what do you mean by:

    I also don’t want to show it like time value, I need to show normal number

    If you want to increase the maximum axisX / axisY you can do so by using the set method: chart.axisX[0].set("maximum", 1000);

    If this doesn’t suit your requirements, kindly create a jsfiddle reproducing the issue you are facing or provide us some pictorial representation so that we can understand your requirements better & help you out.

    ___
    Suyash Singh
    Team CanvasJS

    #17859

    here: https://jsfiddle.net/rayateng/5ure8q33/
    I want to set dynamic axisX get from timer for increase.

    #17865

    @rayateng,

    Updating xVal = t; in your jsfiddle by xVal = t + ms; should work in your case.
    Please have a look at this updated jsfiddle.
    ___
    Suyash Singh
    Team CanvasJS

    #17893

    Thanks brother, but if I want to make graph still running when refresh page so I can’t use static interval. That’s why I need to use timer for interval axisX and Y but I can’t set it correct :(

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

You must be logged in to reply to this topic.