DxChartCommonSeries<T, TGroup, TValue, TArgument> Class

Defines a common series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class DxChartCommonSeries<T, TGroup, TValue, TArgument> :
    DxChartCommonSeriesBase

Type Parameters

Name Description
T

The type of data.

TGroup

The type of group key.

TValue

The type of series values.

TArgument

The type of series arguments.

Remarks

Use the DxChartCommonSeries class to create a common series that allows you to dynamically specify its type.

<DxChart Data="@GridData">
    <DxChartTitle Text="Sales amount" />
    <DxChartCommonSeries
            AggregationMethod="@Enumerable.Sum"
            NameField="@((SaleInfo s) => s.Date.Year)" 
            ArgumentField="@(s => s.City)" 
            ValueField="@(s => s.Amount)">
        <SeriesTemplate Context="settings">
            @if(settings.GroupKey == 2015) {
                <DxChartLineSeries Name='Last year' Settings="@settings">
                </DxChartLineSeries>
            } else {
                <DxChartBarSeries Settings="@settings">
                    <DxChartSeriesLabel Visible="true"></DxChartSeriesLabel>
                </DxChartBarSeries>
            }
        </SeriesTemplate>
    </DxChartCommonSeries>
</DxChart>

Chart Common Series

Online Demo

Charts - Dynamic Series

Inheritance

See Also