Back to Devexpress

How to: Filter Data

wpf-115433-controls-and-libraries-charts-suite-chart-control-examples-data-representation-how-to-filter-data.md

latest1.3 KB
Original Source

How to: Filter Data

  • Jun 07, 2019

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.

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