Is it possible to hide a line?

Share RGraph:   Share or Like RGraph on Facebook!

« 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 Zsolt on 26th April 2017
Hi,

Is there any solution to see all lines when two or more lines completely (or partially) overlap each other?
maybe a slightly slip every line?
or with a clickable legend (key)?

Thanks!
Zsolt
Posted by Richard on 26th April 2017
Hi there,

IIRC there's a .hide() method on the line chart that you could use to hide a line (triggered by HTML buttons for example. It takes the index of the line or an array of indexes.

So something like this:

myLine.hide(0);

And then when you want to show it again you can do this:

myLine.show(0);




Richard
Posted by Zsolt on 27th April 2017
Thanks!

Add a reply




« Back to message list