regarding GeoChart ToolTip

315 views
Skip to first unread message

Sachin

unread,
May 7, 2012, 9:33:03 AM5/7/12
to Google Visualization API, sac...@asentechllc.com
Hi,

I am using google Visualization GeoChart API.

I have a problem in ToolTip hiding and filling the custom color in the
specified regions.

Following is the code.

var data = google.visualization.arrayToDataTable([
['Country'],
['Germany'],
['United States'],
['Brazil'],
['Canada'],
['France'],
['RU']
]);

var geochart = new google.visualization.GeoChart(
document.getElementById('visualization'));
var options = { width: 583, height: 291, colorAxis: { colors:
['#0099CB']}};
options["legend"] = false;
options["datalessRegionColor"] = '999999';

geochart.draw(data, options );


As you can see there is only one column in DataTable ie. country.
Still when the map is rendered and I hover the mouse over the
specified contries , atooltip appears specifying the Name of the
country..

I Want To hide This ToolTip. How is it possible?

And i want to specify custom color in #xxxxxx format to those
countries.. How can I do it..

Pease help as I have searched a lot regarding this but didnt get any
solution.

Regards,
Sachin

EZChart

unread,
May 7, 2012, 11:39:26 AM5/7/12
to google-visua...@googlegroups.com
1. There's no option in GeoChart for hiding the tooltip. However, if you are ok with removing all interactivity from the chart (no highlight effect and no event triggering), than there's a workaround - add an empty div on top of the chart.

2. The color options do not work when there's only one column in the data table of GeoChart. This is a bug. The workaround would be to add another column with an identical value for all the rows.



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Reply all
Reply to author
Forward
0 new messages