There are a few options you can pursue, depending on exactly what you want 
to achieve.  You can use a DataView and the DataTable#getFilteredRows 
method to filter your data, or you can use one (or more) of the available 
controls<https://developers.google.com/chart/interactive/docs/gallery/controls>to
 allow the user to filter the data.

Here's an example of filtering:

// filter out all rows where column 1 < 100 from DataTable "data"
var view = new google.visualization.DataView(data);
view.setRows(data.getFilteredRows([{column: 1, minValue: 100}]));
// draw the chart using "view" instead of "data"
chart.draw(view, options);


On Thursday, April 24, 2014 11:53:32 AM UTC-4, Herrmann Hinz wrote:
>
> hi,
>
> have a data list with lots of entrys and there are several entrys below a 
> certain value which i dont want to be drawn.
>
> i could exclude them on the server side when fetching the data from the 
> database,
> but i wonder if there is a way to exclude these from beeing drawed by 
> setting some options.
>
> this wont work:
>
> vAxis: {
> titleTextStyle: {color: '#FF0000'},
> gridlines: {color: '#e6e6e6', count: 6},
> viewWindowMode: 'explicit',
> viewWindow: {
> min: 170000,
> max: 500000
> }
> }
>
>
>
> is there some other way? 
> modifying the dataTable maybe? 
> do i miss some setting? 
>
> any help appreciated. 
>
>
> tobias
>

-- 
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