Thank you very much indeed, that was the solution I needed.

On May 20, 2:07 pm, Riccardo Govoni <[email protected]> wrote:
> That won't really work. If i understand correctly, he is trying to assemble
> a dashboard where the controls use some columns (manufacturer,region) while
> the charts require some other (region should be exclude), but the controls
> and chart should still be bound together so that playing with the controls
> updates the chart.
>
> In which case, there's a 'view' setting for the ChartWrapper specification
> that lets you choose which columns should the chart receive, out of a
> possibly wider set of columns powering the entire dashboard.
>
> Something like:
>
> var manuControl = new google.visualization.ControlWrapper({
>   controlType: 'CategoryFilter',
>   options: {
>     filterColumnLabel: 'Manufacturer',
>     ...
>
> });
>
> var regionControl = new google.visualization.ControlWrapper({
>   controlType: 'CategoryFilter',
>   options: {
>     filterColumnLabel: 'Region',
>     ...
>
> });
>
> var chart = new google.visualization.ChartWrapper({
>   chartType: 'BarChart',
>   options: {
>     ... // whatever
>   },
> *  // skips column 1 "Region". Ensures the chart only gets the chosen
> columns out of the entire datatable*
> *  view: {columns: [0, 2, 3, 4]}  *
>
> });
>
> new google.visualization.Dashboard(...).bind([manuControl, regionControl],
> chart).draw(data);
>
> The dashboard gets the entire table. The controls pick their column each.
> The chart picks only the columns it needs to display properly.
>
> Would that work?
> The documentation for the 'view' parameter is not in the chart documentation
> at the moment ( I thought it was there a few days ago), I'm looking into
> this.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to