dashboard charts with different data sources

187 views
Skip to first unread message

asgallant

unread,
Dec 19, 2011, 6:36:08 PM12/19/11
to google-visua...@googlegroups.com
I've been experimenting with dashboards, and I'm trying to build one with several charts with related, but disparate data sources (which doesn't lend well to building a single DataTable with).  I can draw them separately with no difficulty, the problem is that I need to fire a 'ready' event when all charts have finished drawing.  Currently I use a crude method where I create event handlers for each chart and iterate over an object shared by all the charts to determine whether or not the charts have finished before firing the event.  While it has worked thus far, I suspect that there is a case lurking in a corner somewhere that is just waiting to bite me.  It would be nice to be able to use the dashboards to get around this problem, but there are two issues that concern me:

1) I haven't had any luck getting the dashboards to draw when defining individual data tables for each chart
2) Is there a way to unbind a chart from a dashboard?  I need to be able to add and remove charts without creating a new or overwriting the old dashboard.

Gabe

unread,
Dec 20, 2011, 10:30:35 AM12/20/11
to google-visua...@googlegroups.com
I would also like to unbind a dashboard control through user input.

I have multiple StringFilters bound to a table.  I also have a NumberRangeFilter that filters rows based on "year".  The filters work well when bound.

dashboard.bind([typeFilter, authorStringFilter, titleStringFilter, abstractStringFilter, yearFilter], table) //works well

The problem is that some of the records in the table don't have a year, so they are filtered out by the "NumberRangeFilter". 

I would like the user to be able to turn the NumberRangeFilter on and off with a checkbox so they can see all the records when the filter is off, but also have the ability to filter by year.  I added a checkbox and tried a number of things, but it seems like I can't manage to unbind the yearFilter no matter what I do.  My work around is to recreate that dashboard every time the checkbox is toggled, but it seems like I should just be able to unbind the year filter.

Marc Lucchini

unread,
May 31, 2012, 10:49:37 PM5/31/12
to google-visua...@googlegroups.com
A more efficient workaround could be to save the state of the NumberRangeFilter if you need it later and give the NumberRangeFilter's lowValue and highValue extreme values in order to ignore it.
This is what I do to unbind the controls as I noticed recreating the dashboard was more time consuming.

Any chance that you have found a (beta?) way to unbind properly the controls since your post?
Reply all
Reply to author
Forward
0 new messages