Trigger tooltips with the mouseover event on a Line chart

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 Sai Krishna Movva on 7th September 2016
Hi,

How do I display tooltips when hovered on a point? By default, they effect the click handler of the point. How do I disable the click handler of a tooltip?
Posted by Richard on 7th September 2016
Hi there,

You can change the event used for tooltips by setting the tooltipsEvent property:

tooltipsEvent: 'onmousemove'



Richard
Posted by Sai Krishna Movva on 7th September 2016
Hi,

tooltipsEvent: 'onmousemove' isn't available for Line Charts. It is available in Bar Charts.

Can I know a solution for Line Charts?
Posted by Richard on 7th September 2016
Hi there,

Well the default is to use the mousemove event when its a Line chart.

www.rgraph.net/demos/line-click-event.html






Richard

Add a reply




« Back to message list