A chart series that displays financial data as candlesticks (OHLC) in a RadzenChart. Each candlestick represents four values: Open, High, Low, and Close for a given category (typically a date). The body of the candlestick spans from Open to Close, and the wicks extend to High and Low. Bullish candles (Close > Open) use BearFill and bearish candles use BearFill.
CartesianSeries<TItem>.RequireChart
CartesianSeries<TItem>.ComposeCategory
CartesianSeries<TItem>.ComposeValue
CartesianSeries<TItem>.IsValueNullable
CartesianSeries<TItem>.GetRawValueGetter
CartesianSeries<TItem>.IsNumeric
CartesianSeries<TItem>.GetCategories
CartesianSeries<TItem>.TransformCategoryScale
CartesianSeries<TItem>.RenderOverlays
CartesianSeries<TItem>.RenderTopOverlays
CartesianSeries<TItem>.Initialize
CartesianSeries<TItem>.MeasureLegend
CartesianSeries<TItem>.MeasureLegendItems
CartesianSeries<TItem>.InsidePolygon
CartesianSeries<TItem>.RenderSharedTooltipItem
CartesianSeries<TItem>.GetTooltipPosition
CartesianSeries<TItem>.TooltipClass
CartesianSeries<TItem>.RenderLegendItem
CartesianSeries<TItem>.GetMedian
CartesianSeries<TItem>.GetMean
CartesianSeries<TItem>.GetMode
CartesianSeries<TItem>.GetTrend
CartesianSeries<TItem>.GetScaledDataPoints
CartesianSeries<TItem>.GetTitle
CartesianSeries<TItem>.TooltipLabel
CartesianSeries<TItem>.TooltipTitle
CartesianSeries<TItem>.GetDataLabels
CartesianSeries<TItem>.PickColor
CartesianSeries<TItem>.Dispose
CartesianSeries<TItem>.InvokeClick
CartesianSeries<TItem>.ValueAxisName
CartesianSeries<TItem>.ChildContent
CartesianSeries<TItem>.TooltipTemplate
CartesianSeries<TItem>.Overlays
CartesianSeries<TItem>.CoordinateSystem
CartesianSeries<TItem>.CategoryProperty
CartesianSeries<TItem>.Visible
CartesianSeries<TItem>.ShowInLegend
CartesianSeries<TItem>.ValueProperty
CartesianSeries<TItem>.RenderingOrder
CartesianSeries<TItem>.Markers
CartesianSeries<TItem>.MarkerType
CartesianSeries<TItem>.ShowLineInLegend
CartesianSeries<TItem>.MarkerSize
RadzenChartComponentBase.ShouldRefreshChart
RadzenChartComponentBase.ValidateParameters
RadzenChartComponentBase.DidParameterChange
RadzenChartComponentBase.Chart
ComponentBase.OnInitialized
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenCandlestickSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries| Name | Description |
|---|---|
| TItem | The type of data items in the series. Each item represents one candlestick. |
<RadzenChart>
<RadzenCandlestickSeries Data=@stockData CategoryProperty="Date"
OpenProperty="Open" HighProperty="High" LowProperty="Low" CloseProperty="Close"
Title="AAPL" />
<RadzenCategoryAxis FormatString="{0:MM/dd}" />
</RadzenChart>A chart series that displays financial data as candlesticks (OHLC) in a RadzenChart. Each candlestick represents four values: Open, High, Low, and Close for a given category (typically a date). The body of the candlestick spans from Open to Close, and the wicks extend to High and Low. Bullish candles (Close > Open) use BearFill and bearish candles use BearFill.
public RadzenCandlestickSeries<TItem>()Gets or sets the fill color for bearish candlesticks (Close < Open). When not set, the theme color scheme applies.
public string BearFill { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the fill color for bearish candlesticks (Close < Open). When not set, the theme color scheme applies. |
Gets or sets the stroke (border/wick) color for bearish candlesticks. If not set, uses BearFill.
public string BearStroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke (border/wick) color for bearish candlesticks. If not set, uses BearFill. |
Gets or sets the fill color for bullish candlesticks (Close >= Open). When not set, the theme color scheme applies.
public string BullFill { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the fill color for bullish candlesticks (Close >= Open). When not set, the theme color scheme applies. |
Gets or sets the stroke (border/wick) color for bullish candlesticks. If not set, uses BullFill.
public string BullStroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke (border/wick) color for bullish candlesticks. If not set, uses BullFill. |
Gets or sets the name of the property of TItem that provides the Close value. Used as the primary ValueProperty for scale calculations.
public string CloseProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property of TItem that provides the Close value. Used as the primary ValueProperty for scale calculations. |
Gets or sets the name of the property of TItem that provides the High value.
public string HighProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property of TItem that provides the High value. |
Gets or sets the name of the property of TItem that provides the Low value.
public string LowProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property of TItem that provides the Low value. |
Gets or sets the name of the property of TItem that provides the Open value.
public string OpenProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property of TItem that provides the Open value. |
public bool ShowActivePoint { get; }
| Type | Description |
|---|---|
| bool |
Gets or sets the width of the candlestick border and wick lines in pixels.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the width of the candlestick border and wick lines in pixels. |
Gets or sets the width of each candlestick body in pixels. If null, the width is calculated automatically based on the chart size and number of data points.
public double? Width { get; set; }
| Type | Description |
|---|---|
| double? | Gets or sets the width of each candlestick body in pixels. If null, the width is calculated automatically based on the chart size and number of data points. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
public override bool Contains(double x, double y, double tolerance)
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y | |
| double | tolerance |
| Type | Description |
|---|---|
| bool |
public override ValueTuple<object, Point> DataAt(double x, double y)
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y |
| Type | Description |
|---|---|
| ValueTuple<object, Point> |
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
| Type | Description |
|---|---|
| RenderFragment |
public override RenderFragment RenderTooltip(object data)
| Type | Name | Description |
|---|---|---|
| object | data |
| Type | Description |
|---|---|
| RenderFragment |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |
protected override string TooltipStyle(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item |
| Type | Description |
|---|---|
| string |
protected override string TooltipValue(TItem item)
| Type | Name | Description |
|---|---|---|
| TItem | item |
| Type | Description |
|---|---|
| string |