DxPolarChartBaseSeries<T, TArgument, TValue>.Filter Property
Specifies an expression used to filter series values.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public Expression<Func<T, bool>> Filter { get; set; }
Property Value
Type | Description |
---|---|
Expression<Func<T, Boolean>> | The filter expression. |
Remarks
Use the Filter
property to make a sample of values. The following code filters out all data except for information on sales made in North America in 2017:
<DxPolarChart Data="@chartsData">
<DxPolarChartAreaSeries Name="North America"
T="SaleInfo"
TArgument="DateTime"
TValue="int"
ArgumentField="si => new DateTime(si.Date.Year, si.Date.Month, 1)"
ValueField="si => si.Amount"
Filter='si => si.Region == "North America" && si.Date.Year == 2017'>
<DxChartSeriesPoint Visible="false" />
</DxPolarChartAreaSeries>
<DxPolarChartArgumentAxis ArgumentType="ChartAxisDataType.DateTime">
<DxPolarChartAxisLabel Format="ChartElementFormat.Month" />
</DxPolarChartArgumentAxis>
</DxPolarChart>
See Also