You can do this. You want to create 4 ChartRangeFilters, and bind one to each chart. The master filter you want to leave unbound. Put your DataTable in the master filter's "dataTable" parameter and call its #draw method. Create a "statechange" event handler for the master that gets its state and sets the states of the other filters to the same as the master. That should do the trick.
See an example here: http://jsfiddle.net/asgallant/7acSs/ On Friday, July 12, 2013 11:07:01 AM UTC-4, Trevor wrote: > > Hey Dan, > > Thanks for responding. So, to clarify, suppose I have 3 charts A, B and C, > and each chart is displaying information from the same data source, but > different columns. i.e.: chart A displays columns 1, 2 and 3, chart B > displays columns 4, 5 and 6 and chart C displays columns 7, 8, and 9. > Currently there is no way to have one master chartRangeFilter that controls > the zoom for each chart, since they are displaying different information? > > In one example I tried binding multiple charts to one chartRangeFilter, I > got the desired zooming functionality, but all the charts ended up > displaying the same data. Is that because of the current implementation > issues you are referring to? > > Thanks for your help, > Trevor > > On Friday, July 12, 2013 4:25:08 PM UTC+2, Daniel LaLiberte wrote: >> >> Hi Trevor, >> >> The documentation about how to establish dependencies between controls >> and charts ( >> https://developers.google.com/chart/interactive/docs/gallery/controls#establish_dependencies) >> >> mentions that you can bind one control to multiple charts. >> >> // One-to-many binding where 'ageSelector' drives two charts. >> >> dashboard.bind(agePicker, [ageVsSalaryScatterPlot, ageBarChart]); >> >> So you could do that with your chartRangeFilter and multiple charts. >> >> However, you should be aware that the chartRangeFilter is only >> controlling data sent to the charts, and is leaving the determination of >> the view window to each chart. This won't matter if all of your charts >> have corresponding data rows, and the same set of values on the domain >> axis. But if not, your view windows will get out of sync occasionally. >> We are working on a solution for this type of problem that might be >> available in a few months. >> >> dan >> >> On Fri, Jul 12, 2013 at 9:18 AM, Trevor <[email protected]> wrote: >> >>> Hello, >>> >>> I am looking to create a chartRangeFilter that controls an arbitrary >>> number of charts, while each of those individual charts have their own >>> chartRangeFilter. For example, chart A has a scroll bar. The user zooms in >>> on range 8-10. Then the user decides they want to investigate range 7-11 on >>> all charts on the page. So they zoom into that range on the master chart >>> range filter. All charts are now set to the range of 7-11. Lastly, the user >>> wants to look at range 6-12 on chart C. So they move chart C's >>> chartRangeFilter, which sets only chart C to range 6-12, while the rest of >>> the charts remain at 7-11. >>> >>> Is such behavior possible with google's visualization API? I have done >>> some searching but I cannot find any documentation on one-to-many >>> chartRangeFilters. Can anyone give me some tips or point me towards some >>> examples / documentation? >>> >>> Thanks >>> >>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at >>> http://groups.google.com/group/google-visualization-api. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >> - 978-394-1058 >> [email protected] 562D 5CC, Cambridge MA >> [email protected] 9 Juniper Ridge Road, Acton MA >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
