Scatter chart not showing tooltips

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 Ed on 22nd October 2013
Code:

var trans = new RGraph.Scatter('trans', [
         ['2013/10/22 10:45:01', 3],
         ['2013/10/22 10:50:02', 8],
         ['2013/10/22 10:55:01', 3],
         ['2013/10/22 11:00:01', 3],
         ['2013/10/22 11:05:01', 8],
         ['2013/10/22 11:10:01', 3],
         ['2013/10/22 11:15:01', 3],
         ['2013/10/22 11:20:02', 8],
         ['2013/10/22 11:25:01', 3],
         ['2013/10/22 11:30:01', 3],
         ['2013/10/22 11:35:01', 14],
         ['2013/10/22 11:40:01', 3],
         ['2013/10/22 11:45:01', 3],
         ['2013/10/22 11:50:02', 8],
         ['2013/10/22 11:55:01', 3],
         ['2013/10/22 12:00:01', 3],
         ['2013/10/22 12:05:01', 8],
         ['2013/10/22 12:10:01', 3],
         ['2013/10/22 12:15:01', 3],
         ['2013/10/22 12:20:01', 114],
         ['2013/10/22 12:25:01', 3],
         ['2013/10/22 12:30:02', 3],
         ['2013/10/22 12:35:01', 8],
         ['2013/10/22 12:40:01', 3]
                                                 ]);

         trans.Set('chart.xmin', '2013/10/22 10:25');
         trans.Set('chart.xmax', '2013/10/22 12:40');

         trans.Set('chart.gutter.right', '50');
         trans.Set('tooltips', ['3','8','3','3','8','3','3','8','3','3','14','3','3','8','3','3','8','3','3','114','3','3','8','3'])
         trans.Set('tooltips.event', 'onmousemove')
         trans.Set('chart.yaxispos', 'right');
         trans.Set('chart.title', 'Transactions per minute');
         trans.Set('chart.labels', ['Last: 3 ~created: 2013/10/22 12:40 ~']);
         trans.Set('chart.line', true);
         trans.Set('chart.line.colors', ['gray']);
         trans.Set('chart.tickmarks', 'circle');
         trans.Draw();
Posted by RGraph Support on 22nd October 2013
Hi there,

With the Scatter chart the tooltips are specified along with the data like this:

var data = [[125,15,null,'The tooltip!'], [133, 5]]



Richard, RGraph Support

Add a reply




« Back to message list