US in Mexico map

31 views
Skip to first unread message

Eze Rangel

unread,
Jan 22, 2013, 5:59:44 PM1/22/13
to google-visua...@googlegroups.com
Hi guys, I was thinking if is there a way to remove or fill with transparent the US 'field' from the Mexico map in the Geochart API

asgallant

unread,
Jan 22, 2013, 6:31:03 PM1/22/13
to google-visua...@googlegroups.com
There is no way to remove that in the API.

Carlos Moreira

unread,
Jan 22, 2013, 7:20:31 PM1/22/13
to google-visua...@googlegroups.com
hello

asgallant is right, you can't remove it with the API. But did you try and set the inactive regions to 'transparent' or 'none'?

what you can also do, is add some advanced CSS selectors like:

#visualization path {
stroke-width:0; /* to remove the borders */
}

and a more tricky one, would be find which shape is the US one, and apply something like:
#visualization path:nth-child(3) {
fill:#FFF; /*color shape white. alpha transparency css could be used also*/
}


this would probably not work in some older versions of IE... but I hope it helps!

asgallant

unread,
Jan 23, 2013, 1:42:51 AM1/23/13
to google-visua...@googlegroups.com
You could also try using CSS overflow and positioning tricks to hide the upper part of the chart div (put the chart div inside another div with smaller height dimension, set overflow to hidden on the outer div and position the chart div with a negative top value).

Eze Rangel

unread,
Jan 23, 2013, 11:44:07 AM1/23/13
to google-visua...@googlegroups.com
Thanks for your answers, I had to do it with CSS3 and attribute selectors ;)
Reply all
Reply to author
Forward
0 new messages