You must be logged in to post your query.
Home › Forums › Chart Support › Dynamic chart axis with timer
Tagged: dynamic chart
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.
@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);
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
here: https://jsfiddle.net/rayateng/5ure8q33/ 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. ___ Suyash Singh Team CanvasJS
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. Login/Register