RadzenOhlcSeries<TItem> Class

A chart series that displays financial data as OHLC (Open-High-Low-Close) bars in a RadzenChart. Each bar shows a vertical line from High to Low, with a left tick at the Open price and a right tick at the Close price. Similar to RadzenCandlestickSeries<T> but uses tick marks instead of filled bodies.

Inheritance

Object

ComponentBase

RadzenChartComponentBase

CartesianSeries<TItem>

RadzenOhlcSeries<TItem>

Implements

IComponent

IHandleEvent

IHandleAfterRender

IChartSeries

IChartValueAxisSeries

Inherited Members

CartesianSeries<TItem>.RequireChart

CartesianSeries<TItem>.ComposeCategory

CartesianSeries<TItem>.ComposeValue

CartesianSeries<TItem>.IsValueNullable

CartesianSeries<TItem>.GetRawValueGetter

CartesianSeries<TItem>.IsDate

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>.Title

CartesianSeries<TItem>.ChildContent

CartesianSeries<TItem>.TooltipTemplate

CartesianSeries<TItem>.Overlays

CartesianSeries<TItem>.CoordinateSystem

CartesianSeries<TItem>.CategoryProperty

CartesianSeries<TItem>.Visible

CartesianSeries<TItem>.Hidden

CartesianSeries<TItem>.ShowInLegend

CartesianSeries<TItem>.ValueProperty

CartesianSeries<TItem>.RenderingOrder

CartesianSeries<TItem>.Data

CartesianSeries<TItem>.Items

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

Syntax

public class RadzenOhlcSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries

Type Parameters

Name Description
TItemThe type of data items in the series. Each item represents one OHLC bar.

Examples

<RadzenChart>
    <RadzenOhlcSeries Data=@stockData CategoryProperty="Date"
        OpenProperty="Open" HighProperty="High" LowProperty="Low" CloseProperty="Close"
        Title="AAPL" />
    <RadzenCategoryAxis FormatString="{0:MM/dd}" />
</RadzenChart>

Constructors

RadzenOhlcSeries<TItem>link

A chart series that displays financial data as OHLC (Open-High-Low-Close) bars in a RadzenChart. Each bar shows a vertical line from High to Low, with a left tick at the Open price and a right tick at the Close price. Similar to RadzenCandlestickSeries<T> but uses tick marks instead of filled bodies.

Declaration
public RadzenOhlcSeries<TItem>()

Properties

BearStrokelink

Gets or sets the stroke color for bearish bars (Close < Open). When not set, the theme color scheme applies.

Declaration
public string BearStroke { get; set; }
Property Value
Type Description
stringGets or sets the stroke color for bearish bars (Close < Open). When not set, the theme color scheme applies.

BullStrokelink

Gets or sets the stroke color for bullish bars (Close >= Open). When not set, the theme color scheme applies.

Declaration
public string BullStroke { get; set; }
Property Value
Type Description
stringGets or sets the stroke color for bullish bars (Close >= Open). When not set, the theme color scheme applies.

ClosePropertylink

Gets or sets the name of the property of TItem that provides the Close value.

Declaration
public string CloseProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property of TItem that provides the Close value.

Colorlink

Declaration
public string Color { get; }
Property Value
Type Description
string

HighPropertylink

Gets or sets the name of the property of TItem that provides the High value.

Declaration
public string HighProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property of TItem that provides the High value.

LowPropertylink

Gets or sets the name of the property of TItem that provides the Low value.

Declaration
public string LowProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property of TItem that provides the Low value.

OpenPropertylink

Gets or sets the name of the property of TItem that provides the Open value.

Declaration
public string OpenProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property of TItem that provides the Open value.

ShowActivePointlink

Declaration
public bool ShowActivePoint { get; }
Property Value
Type Description
bool

StrokeWidthlink

Gets or sets the width of the OHLC bar lines in pixels.

Declaration
public double StrokeWidth { get; set; }
Property Value
Type Description
doubleGets or sets the width of the OHLC bar lines in pixels.

TickWidthlink

Gets or sets the width of the open/close tick marks in pixels. If null, the width is calculated automatically based on the chart size and number of data points.

Declaration
public double? TickWidth { get; set; }
Property Value
Type Description
double?Gets or sets the width of the open/close tick marks in pixels. If null, the width is calculated automatically based on the chart size and number of data points.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Containslink

Declaration
public override bool Contains(double x, double y, double tolerance)
Parameters
Type Name Description
double x
double y
double tolerance
Returns
Type Description
bool

DataAtlink

Declaration
public override ValueTuple<object, Point> DataAt(double x, double y)
Parameters
Type Name Description
double x
double y
Returns
Type Description
ValueTuple<object, Point>

Renderlink

Declaration
public override RenderFragment Render(ScaleBase categoryScale, ScaleBase valueScale)
Parameters
Type Name Description
ScaleBase categoryScale
ScaleBase valueScale
Returns
Type Description
RenderFragment

RenderTooltiplink

Declaration
public override RenderFragment RenderTooltip(object data)
Parameters
Type Name Description
object data
Returns
Type Description
RenderFragment

SetParametersAsynclink

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
Task

TooltipStylelink

Declaration
protected override string TooltipStyle(TItem item)
Parameters
Type Name Description
TItem item
Returns
Type Description
string

TooltipValuelink

Declaration
protected override string TooltipValue(TItem item)
Parameters
Type Name Description
TItem item
Returns
Type Description
string

TransformValueScalelink

Declaration
public override ScaleBase TransformValueScale(ScaleBase scale)
Parameters
Type Name Description
ScaleBase scale
Returns
Type Description
ScaleBase
An error has occurred. This app may no longer respond until reloaded. Reload 🗙