I am wondering if it is possible to customize a region geochart (global) to
provide additional information in the rollovers. The specific values that I
have for each country are taken from different sources, and I'd like the
rollover to provide information about the source.
Following the example in the guide
function drawRegionsMap() {
var data = google.visualization.arrayToDataTable([
['Country', 'Popularity'],
['Germany', 200],
['United States', 300],
['Brazil', 400],
['Canada', 500],
['France', 600],
['RU', 700]
]);
var options = {};
var chart = new
google.visualization.GeoChart(document.getElementById('regions_div'));
chart.draw(data, options);
}
Essentially, I'd like to add another variable "Source" and have the value of
Source reported only as a line for each country in the rollover box. For
example, when I scroll over Germany I'd see:
__________*Germany
*Popularity: 200Source: World Bank
_________
From JSFiddling it is obvious that I cannot simply add a variable to the data
table, ike this
['Country', 'Popularity', 'Source'],
['Germany', 200, 'World Bank'],
['United States', 300, 'OECD'],
['Brazil', 400, 'World Bank'],
etc.
Any suggestions where to look.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/836dba24-acb5-44d6-b4e7-cdaeab3fc859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.