asgallant, Thanks for the reply. I do have a reliable method (for now) of identifying the rect element within the svg/vml element (remember, this visualization falls back to vml for IE 7/8 so you have to check for "g->rect" AND group->rect to cover supported browsers). I've wrapped the visualization in a GWT class since it's not officially available yet in GWT so I've done the work mostly within GWT/Java rather than having to add the jQuery requirement (and additional footprint). It's just that it's a hack that is sensitive to structural changes within the svg/vml so a new release could break it. I've also set it up so it falls back to a div that floats on top to hide it but, since the addition of the min/max values, the mask div covers up a portion of the tip of South America in order to effectively hide the legend. Another more general solution would be to provide a method within the API that reliably returns the element so a user could have a variety of options (hide it all, hide the numbers, manipulate the numbers, move it to another location, etc).
Thanks for the suggestion on the tooltip. That's a good workaround. On Nov 3, 9:40 am, asgallant <[email protected]> wrote: > There may be a hack around the legend if you can identify it in the chart's > SVG with some degree of reliability. The tooltips you can control by > setting the formatted value of data points, which will be displayed instead > of the numerical value. If you don't want anything to show up, set the > formatted value to an empty string. > > I got this code to work using the GeoChart example on the visualization > playground (requires jQuery): > > google.visualization.events.addListener(geochart, 'ready', function () { > $('#visualization').find('iframe').contents().find('svg').children('g'). > last().prev().remove(); > > }); > > This may or may not be reliable, as the playground chart is the only one I > tested it on. You should be able to tweak it to your own needs, though. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
