Diff chart - set tooltip?

175 views
Skip to first unread message

Colin Bolton

unread,
May 11, 2014, 8:14:18 AM5/11/14
to google-visua...@googlegroups.com
Hey,

I'm a newbie to google charts and have been playing with the diff charts - the diff scatter to be exact.

I can set the tooltip of a point on a scatter chart by adding a column with role of tooltip

var newData = google.visualization.arrayToDataTable([
                      ['Data1', 'Data2', { role: 'tooltip' }],
                      [356070, 8034, 'tooltip1'],
                      [177101, 91863, 'tooltip2'],
                      [84194, 1304, 'tooltip3']]);

but if I then try to create an 'old' data set

var oldData = google.visualization.arrayToDataTable([
                      ['Data1', 'Data2', { role: 'tooltip' }],
                      [356070, 8034, 'tooltip4'],
                      [177101, 91863, 'tooltip5'],
                      [84194, 1304, 'tooltip6']]);

and create a diff dataset

var diffData = chartDiff.computeDiff(oldData, newData);

and plot this in a scatter chart the tooltip information is not used.

Any ideas on how to get tooltips on the diff scatter plot?

Thanks!!

Colin

Andrew Gallant

unread,
May 11, 2014, 12:13:28 PM5/11/14
to google-visua...@googlegroups.com
Column roles don't work with diff charts right now.  The dev team is aware of the problem, you can view and "star" the bug report to get updates on a fix.
Reply all
Reply to author
Forward
0 new messages