endless recursion in mouseover example with material bar chart

48 views
Skip to first unread message

flori...@gmail.com

unread,
Apr 16, 2015, 5:17:22 AM4/16/15
to google-visua...@googlegroups.com
Hi,

I was trying to use the mouseover tooltip example here 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

Sergey

unread,
Apr 22, 2015, 4:31:31 PM4/22/15
to google-visua...@googlegroups.com
Thank you for reporting this bug. It will be fixed with the next push, which should occur tomorrow.

flori...@gmail.com

unread,
Apr 24, 2015, 7:02:19 AM4/24/15
to google-visua...@googlegroups.com
Thanks a lot Sergey!
It's now working as expected.
Reply all
Reply to author
Forward
0 new messages