Changing the Marker Border in Geochart

520 views
Skip to first unread message

Brian

unread,
Aug 28, 2013, 11:08:35 AM8/28/13
to google-visua...@googlegroups.com
Hi,
Is there any way to manipulate the border of markers in Geochart, either through JS or CSS?
Thanks,
Brian 

asgallant

unread,
Aug 28, 2013, 11:15:49 AM8/28/13
to google-visua...@googlegroups.com
Changing the marker border is not supported in the API.  If you did into the SVG code (using a DOM inspector like Chrome's or Firefox's), you might be able to find a way to uniquely identify the markers to apply CSS to them, but this will only work for browsers other than IE 8 and older (which put the chart in an iframe, so you can't affect it with CSS on the main page, and use VML, so the elements are different and your selectors wouldn't work).  Also, the internal structure of the charts is subject to change without notice as the API team makes improvements, so it is possible that future API updates will break your CSS.

asgallant

unread,
Aug 28, 2013, 11:17:03 AM8/28/13
to google-visua...@googlegroups.com
Forgot to add: you can make a feature request to add support for changing the marker borders here.

Brian

unread,
Aug 28, 2013, 12:12:30 PM8/28/13
to google-visua...@googlegroups.com
Thanks! Looks like it's possible to do with CSS:
circle { stroke-width: npx }
Reply all
Reply to author
Forward
0 new messages