DxChartCommonSeries<T, TGroup, TValue, TArgument> Class
Defines a common series.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public class DxChartCommonSeries<T, TGroup, TValue, TArgument> :
DxSettingsComponent<ChartCommonSeriesBaseModel>,
INestedSettingsOwner
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"
SummaryMethod="Enumerable.Max">
</DxChartCommonSeries>
</DxChart>
@code {
IEnumerable<SaleInfo> SalesData;
protected override async Task OnInitializedAsync() {
SalesData = await Sales.GetSalesAsync();
}
}
Inheritance
Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartCommonSeriesBaseModel>
DxChartCommonSeries<T, TGroup, TValue, TArgument>
See Also