Add a link to one of the labels

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 Todd R on 6th October 2016
Is there a way to make a label a hyperlink? For example I have a bar graph and my label is TOTAL (shows to the left of the stacked bar). Clicking a part of the stacked bar will bring up information on that part of the bar (in a separate div) but I would like clicking the 'TOTAL' label hyperlink to showing information for ALL of the bar.

Posted by Richard on 6th October 2016
Hi there,

Well, assuming you use DOM text (which is the default), then you could use jQuery (or similar) to wrap the label in a link tag.



Richard
Posted by Richard on 6th October 2016
Hi there,

I forgot the example link:

www.rgraph.net/fiddle/view.html/adding-a-link-to-a-label




Richard
Posted by Todd R on 6th October 2016
It worked. Fantastic! Thanks for the help.

Todd
Posted by Richard on 6th October 2016
Hi there,

See below... :-)


Richard

Add a reply




« Back to message list