Just found a workaround. The trick is to draw the chart twice:

             $('#geoChartRatingsForm .selectRegion').change(function()
{
                 geoChartRatingsOptions['region'] = this.value;
                 geoChartRatings.draw(geoChartRatingsData,
geoChartRatingsOptions);
                 geoChartRatings.draw(geoChartRatingsData,
geoChartRatingsOptions);
             });

On 27 dic, 12:22, Acelga <[email protected]> wrote:
> I'm using google geomaps with initial data showing the whole world. A
> selector allows to zoom into a region, firing an event which changes
> the chart region:
>
>              var geoChartRatingsData;
>              // ... code to fill the data goes here ...
>
>              // Handle chart selection events:
>              $('#geoChartRatingsForm .selectRegion').change(function()
> {
>                  geoChartRatingsOptions['region'] = this.value;
>                  geoChartRatings.draw(geoChartRatingsData,
> geoChartRatingsOptions);
>              });
>
> The problem is that in most cases the chart shows an alert "The
> visualization is currently loading" and the map is not zoomed. This
> happens randomly, sometimes it works and others not.
>
> Is there some solution or workaround to this?
>
> Thank you

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