DxChartCommonSeries<T, TGroup, TValue, TArgument>.ValueField Property

Specifies a data source field that provides values for series points.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public Expression<Func<T, TValue>> ValueField { get; set; }

Property Value

Type Description
Expression<Func<T, TValue>>

A lambda expression that returns chart values.

Remarks

<DxChart Data="@ChartsData">
    <DxChartCommonSeries NameField="@((SaleInfo s) => s.Date.Year)" Filter="@((SaleInfo s) => s.Region == "Europe")" 
                         SummaryMethod="Enumerable.Sum" ArgumentField="@((SaleInfo s) => s.City)" 
                         ValueField="@((SaleInfo s) => s.Amount)" SeriesType="@(ChartSeriesType.Bar)" />
</DxChart>

Chart Common Series

Online Demo

Charts - Dynamic Series

See Also