Home forums Using CanvasJS Dynamic chart axis with timer

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  rayateng 1 week, 2 days ago.

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

    rayateng
    Member

    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

    Suyash Singh
    Moderator

    @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

    rayateng
    Member

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

    #17865

    Suyash Singh
    Moderator

    @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

    rayateng
    Member

    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.