You can create a "select" event handler to zoom by doing something like
this:
google.visualization.events.addListener(chart, 'select', function () {
var selection = chart.getSelection();
if (selection.length) {
var region = data.getValue(selection[0].row, 0);
// figure out the region code and resolution from your selected
region
options.resolution = /* resolution to draw at */;
options.region = /* region to draw */;
chart.draw(data, options);
}
});
On Friday, June 6, 2014 1:26:43 PM UTC-4, Tim Plummer wrote:
>
> Do you have any reference on how to accomplish this?
>
> On Wednesday, October 10, 2012 2:53:28 PM UTC-5, asgallant wrote:
>>
>> Geocharts are built in SVG (or VML in IE < 9), so you don't need to know
>> any HTML5 to use them. The API doesn't support zooming the charts, though.
>> You can change the region drawn (based on visualization "select" events if
>> you like) to "zoom" in or out, but you can't arbitrarily zoom any given
>> map.
>>
>> On Wednesday, October 10, 2012 2:19:52 PM UTC-4, Vandy wrote:
>>>
>>> Hi ,
>>>
>>> Do you have any options in Geochart for Zoom in ?
>>>
>>> I am very new to html5 so I don't know how to implement the methods
>>> (like action listeners).
>>>
>>> Thank You!
>>>
>>>
--
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.
For more options, visit https://groups.google.com/d/optout.