How do I show labels dynamically according to the values that are scrolling?


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by hardeep on 3rd October 2015
In this graph
localhost/iot_apps/line-dynamic-scrolling.php

i want to show labels on the x-axis change according to the values on the graph
Posted by Richard Heyes on 3rd October 2015
Hi there,

The address you gave is for localhost and therefore not accessible by anyone other than yourself.

There is a demo of what you want here:

www.rgraph.net/demos/line-dynamic-last-10-minutes.html

But its more complicated than one with fixed labels (not a huge amount though) - plus Chrome with its slowing down of timers for background tabs can have detrimental effects on it such as missing labels - so try using something like Firefox or MSIE.

Again - the easiest way to do this would be to take the page and then build your page around the code instead of taking the code from the page and using it your own page.




Richard

Add a reply




« Back to message list