Tooltips on key elements?

Share RGraph:  

« 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 Xue on 5th May 2016
Is it possible to have tooltips show when I click on the Key of a bar chart?
Posted by Richard on 5th May 2016
Hi,

Not out-of-the-box. But like the interactive key does you could put drawing API rect objects over the key texts using the obj.coordsKey array and then add the tooltips to the rect objects. You might need to use normal canvas text for it to work (ie do NOT set textAccessible to true).

In the RGraph.common.key file search for:

if (prop['chart.key.interactive']) {

to find the relevant section that adds the drawing API rects to the key.





Richard
Posted by Richard on 5th May 2016
Hi,

> obj.coordsKey

Actually that might be obj.coords.key




Richard
Posted by Xue on 6th May 2016
Thanks for the reply!

Add a reply




« Back to message list