Home › forums › Using CanvasJS › Dynamic chart axis with timer
Tagged: dynamic chart
This topic contains 4 replies, has 2 voices, and was last updated by rayateng 11 months, 1 week ago.
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.
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.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.
I want to set dynamic axisX get from timer for increase.
Updating xVal = t; in your jsfiddle by xVal = t + ms; should work in your case.
Please have a look at this updated jsfiddle.
xVal = t;
xVal = t + ms;
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 :(
You must be logged in to reply to this topic.