Skip to main content
A newer version of this page is available. .

How to: Filter Data

This example shows how to create a chart, bind it to a data source and filter series data.

To do this, follow these steps:

The following image shows a chart with filtered series data. The chart displays the prices of cars whose price is less than $20000 and engine capacity is greater than 2.3 liters.

DataFiltering

Note

A complete sample project is available at https://github.com/DevExpress-Examples/how-to-filter-series-data-t339646.

<dxc:BarSideBySideSeries2D DisplayName="Cars" 
                           ArgumentDataMember="Model" 
                           ValueDataMember="Price" 
                           FilterString="([Price] &lt; 20000) AND ([Liter] &gt; 2.3)">
</dxc:BarSideBySideSeries2D>