Dashboard redraw into Modal Window

187 views
Skip to first unread message

Michelle Stewart

unread,
Jan 14, 2013, 11:24:22 AM1/14/13
to google-visua...@googlegroups.com
I have a series of buttons that when clicked each pass a separate chart to the same function that redraws the chart in a jQuery UI dialog window where it is much larger and can be easily printed (via a separate function).  Some of my data does not easily fit into these charts and is better displayed through dashboards which I generate dynamically using a function similar to the filter chart function shown in my jsFiddle.  I've mastered the art of redrawing a simple chart (see zoomChart function at the bottom of my fiddle). How can I do the same thing with my dashboards?  (Redraw them larger).  I would like the functionality to be maintained so that the chart filtered multiple ways could be rapidly printed and complex data can be retrieved in the larger display.  I see the Dashboard object but don't see a way to easily alter some of the properties like I can with the drawChart method.  I have been looking around and came across this post, which sounded promising but doesn't seem to have anything to do with dashboards.  Do I have to go all the way back to the raw data and reconfigure everything for the new location?

Any help will be greatly appreciated,
Michelle

asgallant

unread,
Jan 14, 2013, 1:07:28 PM1/14/13
to google-visua...@googlegroups.com
Even when using a Dashboard, you can still manipulate and redraw individual charts separately.  ChartWrapper's expose methods for changing all of their parameters, and you can call their #draw methods independently of the Dashboard to redraw them with the updated parameters.

Michelle Stewart

unread,
Jan 14, 2013, 3:16:41 PM1/14/13
to google-visua...@googlegroups.com
The original controls will be covered when the dialog is called.  And I would like them to be able to manipulate the chart from the dialog.  I guess that's why I'm thinking I may need to redraw essentially the whole dashboard.  This is the only chart the controls are manipulating.  I am simply under the impression that the only way to use controls is through a dashboard.  So what I'm trying to determine is what is the minimum amount of information or objects or variables I need to have populated at a global level so that I can take one of these dynamic dashboards generated in a ajax.Success method and still be able to redraw it for my zoom.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/DVXFxEK3L_8J.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
Michelle Stewart
Nysus Solutions

asgallant

unread,
Jan 14, 2013, 5:24:42 PM1/14/13
to google-visua...@googlegroups.com
So you want to redraw the whole dashboard in the dialog box?  You will have to place appropriate container div's for all the controls and the chart in the dialog box, change the ChartWrapper and ControlWrappers' "containerId" parameters to match the new div's, and then redraw the Dashboard (the container div used to construct the Dashboard has no significance as far as I am aware, so you don't need to worry about that).
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Reply all
Reply to author
Forward
0 new messages