How to adjust the positioning of tooltips (preventing them scrolling)

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 jhonpink on 27th June 2016
How can we fix the position of a tooltip on hbar chart ? When we scroll the window, the tooltip also moves with that! I want to keep it fixed at the top of the bar... how can I do that ?



Please Give me Example code
Posted by Richard on 27th June 2016
Hi there,

See my answer to the other message.





Richard
Posted by jhonpink on 28th June 2016
How can we fix the position of a tooltip on hbar chart ? When we scroll the window, the tooltip also moves with that! I want to keep it fixed at the top of the bar... how can I do that ?
For the same problem your suggested the below link but it's not showing any thing
please send me the correct address for the problem or give me some example code.
Posted by Richard on 28th June 2016
Hi there,

If you want to set the positioning of tjhe tooltip to fixed you can do this:

...
.on('tooltip', function (e)
{
     var tooltip = RGraph.Registry.get('chart.tooltip');
     tooltip.style.position = 'fixed';
})
...






Richard

Add a reply




« Back to message list