Hi Thanks for the reply,

can you tell us how to add the continents and subcontinents in the
datatable

i tried adding like this

                var data = new google.visualization.DataTable();
                data.addRows(3);
                data.addColumn('string', 'continents ');
                data.addColumn('number', 'Popularity');

It seems not working.




On May 24, 7:44 am, ChartALot <[email protected]> wrote:
> Hi,
> Using the GeoChart, you can view the world map, split into continents or
> subcontinents (by setting options['resolution'] = 'continents' (or
> 'subcontinents')). This option is not documented yet, so the maps may change
> a bit in the future.
>
> If you hook into the regionClick event, can be notified once your user
> clicks a region, and redraw the map with different options.
>
> For example:
>
>   var geochart = new google.visualization.GeoChart(
>       document.getElementById('visualization'));
>   var options = {region: 'world', resolution: 'continents', width: 556,
> height: 347};
>   google.visualization.events.addListener(geochart, 'regionClick', function(
> eventData) {
>     // maybe you want to change the data table here...
>     options['region'] = eventData.region;
>     options['resolution'] = 'countries';
>     geochart.draw(data, options);
>   });
>   geochart.draw(data, options);
>
> HTH
>
>
>
> On Mon, May 23, 2011 at 9:47 PM, mags <[email protected]> wrote:
> > IS there a way to show up continents with geomap or geochart.
> > My goal here is to show the continents and on click event needs to
> > show the specific countries in each continents.
>
> > --
> > 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.- Hide quoted 
> >text -
>
> - Show quoted text -

-- 
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.

Reply via email to