Google GeoChart Hover Event

1,203 views
Skip to first unread message

Joachim Löfstedt

unread,
Mar 11, 2015, 6:41:40 AM3/11/15
to google-visua...@googlegroups.com
Hey,

I wonder if its possible to prevent the hover effect on Googles GeoCharts https://developers.google.com/chart/interactive/docs/gallery/geochart to be displayed.
When you hover a region of the map a custom stroke/border is added on top of the country normal stroke. I have tried for quite some time finding a solution to this but it seems impossible to remove it.

Anyone got ideas?

Thanks

Carlos Moreira

unread,
Mar 11, 2015, 10:14:23 PM3/11/15
to google-visua...@googlegroups.com
Hi Joachim

I've been doing it with css. 
Something like:

#visualization path { stroke-width:1px; }

But if you're using the markers mode or text mode, you can set the inactive parameter to false:

Hope it helps! 

Joachim Löfstedt

unread,
Mar 12, 2015, 5:05:34 AM3/12/15
to google-visua...@googlegroups.com
Hey Carlos,

Thanks for your suggestions. I think the first one might do what I actually want. I am using the colored region mode (not markers or text) and it seems to help with your first jsfiddle.
I will try this in my current implementation.

Thank you again!

Ingmar

unread,
Aug 10, 2017, 11:59:49 AM8/10/17
to Google Visualization API
#visualization g[clip-path] > g + g > g > path {
    stroke-width: 0;
    fill: transparent;
}
Reply all
Reply to author
Forward
0 new messages