DxChartCommonSeries<T, TGroup, TValue, TArgument> Class

Defines a common series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

public class DxChartCommonSeries<T, TGroup, TValue, TArgument> :
    DxSettingsComponent<ChartCommonSeriesBaseModel>

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="@SalesData">
    <DxChartCommonSeries NameField="@((SaleInfo s) => s.Date.Year)"
                         ArgumentField="@((SaleInfo s) => s.City)"
                         ValueField="@((SaleInfo s) => s.Amount)"
                         SeriesType="ChartSeriesType.Bar">
    </DxChartCommonSeries>
</DxChart>

@code {
    IEnumerable<SaleInfo> SalesData;

    protected override async Task OnInitializedAsync() {
        SalesData = await Sales.GetSalesAsync();
    }
}

Chart Common Series

Run Demo: Charts - Series Types

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartCommonSeriesBaseModel>
DxChartCommonSeries<T, TGroup, TValue, TArgument>
See Also