That error stems from this:

dataView.getFilteredRows([{column:3, minValue: 12}])

The view only has 3 columns, via this:

dataView.setColumns([3,1,2]);

Column 3 in the DataTable becomes column 0 in the view, so you should 
filter like this:

dataView.getFilteredRows([{column:0, minValue: 12}])

example: http://jsfiddle.net/asgallant/H3LcK/3/

You might want to take a look at the 
controls<https://developers.google.com/chart/interactive/docs/gallery/controls#gallery>available
 in the API that can filter data for you.

On Wednesday, March 26, 2014 5:08:49 PM UTC-4, cyb wrote:
>
> Hi,
>
> ok thx again :)
>
> and what is with the filtering ?
>
> i have created a little example but it doesn`t work. I want filter the 
> X-Axis that it only shows values that are bigger then 12.. 
> But i get this Error: "Invalid column index 3. Should be an integer in 
> the range [0-2]."
>
> I want a dynamic filtering on the X-Axis that i can say i want only show 
> values between value A and B.. and A and B can be set dynamicly.
>
> My Example: http://jsfiddle.net/stargate/H3LcK/2/
>
> best regards
>

-- 
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/d/optout.

Reply via email to