DxChartRangeBarSeries<T, TArgument, TValue> Class

Defines a range bar series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

public class DxChartRangeBarSeries<T, TArgument, TValue> :
    DxChartSeries<T, TArgument, TValue, ChartRangeBarSeriesModel<T, TArgument, TValue>>

Type Parameters

Name Description
T

The type of data.

TArgument

The type of arguments.

TValue

The type of values.

Remarks

Range Bar series display value ranges that correspond to argument values. The Chart selects the maximum and minimum bar limits from data points with an equal argument to specify start and end values.

Use the chart's Data property to specify an IEnumerable<T> data source, and the ArgumentField and ValueField properties to specify data source fields that contain arguments and values for chart points.

@inject WeatherForecastService ForecastService

<DxChart Data="@ChartData">
    <DxChartRangeBarSeries ValueField="@((WeatherForecast i) => i.TemperatureF)" 
                           ArgumentField="@(i => i.Date.Date)" 
                           Name="Temperature, F" />
    <DxChartTooltip>
        @context.GetRangePoint().Render((rangePoint) =>
            @<div class="p-3">
                <p>Max: @rangePoint.EndValue</p>
                <p>Min: @rangePoint.StartValue</p>
            </div>
         )
    </DxChartTooltip>
</DxChart>

@code {
    WeatherForecast[] ChartData;

    protected override async Task OnInitializedAsync() {
        ChartData = await ForecastService.GetRangeForecastAsync();
    }
}

Run Demo: Charts - Range Bar Series

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartSeriesModel>
DxComplexSettingsComponent<DxChartSeries, DevExpress.Blazor.Internal.ChartSeriesModel>
DxChartSeries
DxChartSeries<T, TArgument, TValue, TValue, DevExpress.Blazor.Internal.ChartRangeBarSeriesModel<T, TArgument, TValue>>
DxChartSeries<T, TArgument, TValue, DevExpress.Blazor.Internal.ChartRangeBarSeriesModel<T, TArgument, TValue>>
DxChartRangeBarSeries<T, TArgument, TValue>
See Also