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.
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 RadzenOhlcSeries<TItem> : CartesianSeries<TItem>, IComponent, IHandleEvent, IHandleAfterRender, IChartSeries, IChartValueAxisSeries| Name | Description |
|---|---|
| TItem | The type of data items in the series. Each item represents one OHLC bar. |
<RadzenChart>
<RadzenOhlcSeries 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 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.
public RadzenOhlcSeries<TItem>()Gets or sets the stroke color for bearish bars (Close < Open). When not set, the theme color scheme applies.
public string BearStroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke color for bearish bars (Close < Open). When not set, the theme color scheme applies. |
Gets or sets the stroke color for bullish bars (Close >= Open). When not set, the theme color scheme applies.
public string BullStroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke color for bullish bars (Close >= Open). When not set, the theme color scheme applies. |
Gets or sets the name of the property of TItem that provides the Close value.
public string CloseProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property of TItem that provides the Close value. |
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 OHLC bar lines in pixels.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the width of the OHLC bar lines in pixels. |
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.
public double? TickWidth { get; set; }
| 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. |
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 |