So then would you have to program in a "zoom-out" parameter to the selected
item to take you back to the region you were just in?

*Tim Plummer*
*wordpress/web developer*

*integrity*
314.727.3600
618.917.1503 mobile
www.integritystl.com

www.facebook.com/IntegritySTL
www.twitter.com/integritystl


On Fri, Jun 6, 2014 at 3:38 PM, Andrew Gallant <asgallant...@gmail.com>
wrote:

> 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 a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/mWV3OcHlHVk/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to