Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxPolarChartBaseSeries<T, TArgument, TValue>.Filter Property

Specifies an expression used to filter series values.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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>

Filtered data

See Also