how to add zoom control to linechart

3,621 views
Skip to first unread message

Rafael Campaña

unread,
May 30, 2011, 8:40:06 AM5/30/11
to Google Visualization API
Hello,

I would know if it's possible to add control to a LineChart. Control
like zoom in and zoom out, select an area over the chart and zoom it,
etc.

Where can I found the source code of the LineChart?

Greeting and thank you, Rafael.

asgallant

unread,
May 31, 2011, 10:55:31 AM5/31/11
to google-visua...@googlegroups.com
The new chart controls wrapper (http://code.google.com/apis/chart/interactive/docs/gallery/controls.html) might do what you want.  You can also use data views with the setRows() method to set your minimum and maximum x-axis values.

As far as the source code goes, if I recall correctly, the visualizations API is not open source.

Rafael Campaña

unread,
Jun 16, 2011, 3:57:46 AM6/16/11
to Google Visualization API
Thank for the answer,

but I was looking for for the maner to add some kind of region
selection and zoom in over it.

But I haven't found the way to add an event listener when you click
over the axes plane.

On 31 mayo, 16:55, asgallant <drew_gall...@abtassoc.com> wrote:
> The new chart controls wrapper (http://code.google.com/apis/chart/interactive/docs/gallery/controls.html) *
> might* do what you want.  You can also use data views with the setRows()

Riccardo Govoni

unread,
Jun 16, 2011, 4:19:16 AM6/16/11
to google-visua...@googlegroups.com
Something like this region selector?
(drag the handles on the area chart at the bottom to select a different region affecting the map on the top).

/R.

Reply all
Reply to author
Forward
0 new messages