Hi,
I was trying to use the mouseover tooltip example here
<https://developers.google.com/chart/interactive/docs/examples#mouseovertooltip>
on a material bar chart (e.g. google.charts.Bar), since I like the new
material charts.
In the example code from the documentation I replaced:
barsVisualization = new google.visualization.ColumnChart(document.
getElementById('mouseoverdiv'));
with:
barsVisualization = new google.charts.Bar(document.getElementById(
'mouseoverdiv'));
and on the first mouseover event it ran into what looks like an endless
recursion and I get a error (maximum call stack size exceeded).
Does the setSelection trigger a mouseover event causing the recursion? How
could I avoid that?
Am I missing something? Is there some more documentation on the events of
the material charts?
I was trying to change the style of the chart elements so that they look
selected when they are just hovered (I like the greyed-out effect to make
the selection more obvious, which is especially useful on smaller charts
with more elements/series).
How should I handle this better/properly?
Thanks for your help!
Florian
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.