Skip to main content

DxPieChartSeries<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. In the following example, the series shows information for the European region.

<DxPieChart Data="@SalesData">
    <DxPieChartSeries T="SaleInfo"
                      TArgument="string"
                      TValue="double"
                      Filter="@((SaleInfo si) => si.Region == "Europe")"
                      ValueField="si => si.Amount"
                      ArgumentField="si => si.City"
                      SummaryMethod="Enumerable.Sum">
    </DxPieChartSeries>
    <DxChartLegend Position="RelativePosition.Outside" />
</DxPieChart>

Pie Chart Filter Values

Run Demo: Pie Chart

See Also