Tooltips with multiple Bar columns


« 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 Peter on 5th February 2014
So I am trying to add tooltips to my graph. However the tool tips are only showing up for the first column.

Each column contains 1+ bars, and there are multiple columns for the graph.


I have attempted to use the:
'.Set('tooltips', listOfStrings)'

And I have attempted to use:
'.Set('tooltips', listOfListStrings)'


Any help would be very much appreciated.
Posted by Richard on 5th February 2014
Hi there,

Sounds like your "listOfStrings" variable might be in the wrong format. Try using a literal value to see if that works:



var myTooltips = ['A','B','C','D','E'];

obj.Set('tooltips', myTooltips);





Richard
www.rgraph.net
Please link to the RGraph website. Thanks!
Posted by Peter on 7th February 2014
Thank you, I feel kinda silly that it was something so simple. I think what didn't help was that I was setting my canvas style width: 100%, which seemed to mess with the alignment of the tool tips.

Add a reply

 




« Back to message list
RGraph on social media