Skip to main content

DxChartStackedBarSeriesBase<T, TArgument, TValue> Class

Defines a stacked bar series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public abstract class DxChartStackedBarSeriesBase<T, TArgument, TValue> :
    DxChartBarSeriesBase<T, TArgument, TValue>

Type Parameters

Name Description
T

The type of data.

TArgument

The type of series arguments.

TValue

The type of series values.

Remarks

Use the DxChartStackedBarSeries or DxChartFullStackedBarSeries to create a stacked bar series.

<DxChart Data="@SalesData">
    <DxChartStackedBarSeries Name="2017" 
                             Filter="@((SaleInfo s) => s.Date.Year == 2017)"
                             ArgumentField="@(s => s.City)" 
                             ValueField="@(s => s.Amount)"
                             SummaryMethod="Enumerable.Sum" />
    <DxChartStackedBarSeries Name="2018" 
                             Filter="@((SaleInfo s) => s.Date.Year == 2018)"
                             ArgumentField="@(s => s.City)" 
                             ValueField="@(s => s.Amount)"
                             SummaryMethod="Enumerable.Sum" />
    <DxChartStackedBarSeries Name="2019" 
                             Filter="@((SaleInfo s) => s.Date.Year == 2019)"
                             ArgumentField="@(s => s.City)" 
                             ValueField="@(s => s.Amount)"
                             SummaryMethod="Enumerable.Sum" />
    <DxChartLegend Position="RelativePosition.Outside" HorizontalAlignment="HorizontalAlignment.Right" />
</DxChart>

@code {

Chart Stacked Bar Series

Use the Stack property to create a side-by-side bar chart.

Run Demo: Charts - Bar Series

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.IXYChartSeriesModel>
DxComplexSettingsComponent<DxChartSeries, DevExpress.Blazor.Internal.IXYChartSeriesModel>
DxChartSeries
DxChartXYSeries<T, TArgument, TValue, TValue>
See Also