DxChartCandlestickSeries<T, TArgument, TValue> Class
Defines a candlestick series.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public class DxChartCandlestickSeries<T, TArgument, TValue> :
DxChartFinancialSeriesBase<T, TArgument, TValue>
Type Parameters
| Name | Description |
|---|---|
| T | The data type. |
| TArgument | The argument type. |
| TValue | The value type. |
Remarks
Use a candlestick series to display the Open-High-Low-Close stock price data as candles. 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 define High and Low values.
Each series point displays a rectangle (body) and a vertical line. The rectangle’s top and bottom edges indicate open and close prices. The vertical line displays high and low prices. If the stock closes lower than its open price, the body is filled with the color specified by the DxChartCandleStickSeries.Color or DxChartFinancialReduction.Color property. If the stock closes higher that its open price, the body is filled with the color specified by the DxChartCandleStickSeries.InnerColor property. The default body fill color for such points is white.
The DxChart component compares each point in a financial series to the previous point. You can use the DxChartFinancialReduction object to highlight points where value decreases.

@inject IFinancialSeriesDataProvider FinancialSeriesDataProvider
<DxChart @ref="@chart"
Data="@stockData"
Width="100%">
<DxChartLegend Position="RelativePosition.Outside" />
<DxChartCandlestickSeries OpenField="(StockDataPoint sdp) => sdp.Open"
HighField="sdp => sdp.High"
LowField="sdp => sdp.Low"
CloseField="sdp => sdp.Close"
ArgumentField="@(sdp => new DateTime(
sdp.DateTimeStamp.Year,
sdp.DateTimeStamp.Month,
sdp.DateTimeStamp.Day,
sdp.DateTimeStamp.Hour,
sdp.DateTimeStamp.Minute,
0) )"
Name="Eco Supreme" />
</DxChart>
@code {
IEnumerable<StockDataPoint> stockData;
DxChartBase chart;
protected override async Task OnInitializedAsync() {
stockData = await FinancialSeriesDataProvider.GenerateByMinutes();
}
}