DxChartStockSeries<T, TArgument, TValue> Class

Defines a stock bar series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public class DxChartStockSeries<T, TArgument, TValue> :
    DxChartSeries<T, TArgument, TValue, ChartStockSeriesModel<T, TArgument, TValue>>

Type Parameters

Name Description
T

The type of data.

TArgument

The type of arguments.

TValue

The type of values.

Remarks

Use a stock series to display the Open-High-Low-Close price data. A set of values with the same associated argument is aggregated into one point. The first value in the set is considered to be Open Value, the last value is Close Value, maximum and minimum values represent High and Low values.

Each stock series point is displayed as a vertical line with two tick marks. The vertical line's bottom and top values represent the high and low prices. The left and right tick marks represent the open and close prices.

<DxChart Data="@ProductSalesData">
    <DxChartStockSeries ValueField="@((Sale i) => i.TotalCost)" 
                        ArgumentField="@(i => i.SaleDate.ToString("yyyy/MM/dd"))" 
                        Name="@($"{Product.Name} Sales")" />
    <DxChartTooltip>
        @context.GetFinancialPoint().Render((financialPoint) =>
            @<div class="p-3">
                <p>Open: @financialPoint.OpenValue</p>
                <p>Close: @financialPoint.CloseValue</p>
                <p>High: @financialPoint.HighValue</p>
                <p>Low: @financialPoint.LowValue</p>
            </div>
        )
    </DxChartTooltip>
</DxChart>
NOTE

Online Demo: Charts - Financial Series

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.ChartSeriesModel>
DxComplexSettingsComponent<DxChartSeries, DevExpress.Blazor.ChartSeriesModel>
DxChartSeries
DxChartSeries<T, TArgument, TValue, TValue, DevExpress.Blazor.ChartStockSeriesModel<T, TArgument, TValue>>
DxChartSeries<T, TArgument, TValue, DevExpress.Blazor.ChartStockSeriesModel<T, TArgument, TValue>>
DxChartStockSeries<T, TArgument, TValue>
See Also