Resize and remove the chart?

91 views
Skip to first unread message

novito

unread,
Jun 11, 2012, 8:13:09 PM6/11/12
to Google Visualization API
I am creating a dashboard of different kind of charts (4) and I am
planning on doing the following:

When the user clicks on one of the charts (I might need to figure out
how to capture an onclick on the chart to avoid any char-related
event) I want to have that chart in a bigger size in the center of my
page.

My question is: What is a good approach for doing so? I was thinking
if it would be posible to resize and copy that chart into that new
location or it is necessary to render a new object on that new
location?

Appreciate any help or suggestions on doing so. Thanks a lot.

asgallant

unread,
Jun 12, 2012, 11:05:56 AM6/12/12
to google-visua...@googlegroups.com
You will need to draw a new chart.

If you want to completely disable the interactivity of the base charts, the simplest solution is to use css to layer an empty div on top of each chart.  You can then attach a click event handler to each div to trigger the draw of the large version.
Reply all
Reply to author
Forward
0 new messages