# 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>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenCandlestickSeries-1.md) but uses tick marks instead of filled bodies.

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- ComponentBase
- [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md)
- [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md)
- RadzenOhlcSeries<TItem>

## Implements

- IComponent
- IHandleEvent
- IHandleAfterRender
- [IChartSeries](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartSeries.md)
- [IChartValueAxisSeries](https://blazor.radzen.com/docs/api/Radzen.Blazor.IChartValueAxisSeries.md)

## Syntax

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

## Type Parameters

| Name | Description |
|------|-------------|
| TItem | The type of data items in the series. Each item represents one OHLC bar. |

## Examples

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

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public RadzenOhlcSeries<TItem>()` | 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>](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenCandlestickSeries-1.md) but uses tick marks instead of filled bodies. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| BearStroke | `string` | Gets or sets the stroke color for bearish bars (Close < Open). When not set, the theme color scheme applies. |
| BullStroke | `string` | Gets or sets the stroke color for bullish bars (Close >= Open). When not set, the theme color scheme applies. |
| CloseProperty | `string` | Gets or sets the name of the property of TItem that provides the Close value. |
| Color | `string` |  |
| HighProperty | `string` | Gets or sets the name of the property of TItem that provides the High value. |
| LowProperty | `string` | Gets or sets the name of the property of TItem that provides the Low value. |
| OpenProperty | `string` | Gets or sets the name of the property of TItem that provides the Open value. |
| ShowActivePoint | `bool` |  |
| StrokeWidth | `double` | Gets or sets the width of the OHLC bar lines in pixels. |
| TickWidth | `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

| Method | Returns | Description |
|------|---------|-------------|
| `BuildRenderTree(Rendering.RenderTreeBuilder __builder)` | `void` |  |
| `Contains(double x, double y, double tolerance)` | `bool` |  |
| `DataAt(double x, double y)` | `ValueTuple<object, Point>` |  |
| `Render(ScaleBase categoryScale, ScaleBase valueScale)` | `RenderFragment` |  |
| `RenderTooltip(object data)` | `RenderFragment` |  |
| `SetParametersAsync(ParameterView parameters)` | `Task` |  |
| `TooltipStyle(TItem item)` | `string` |  |
| `TooltipValue(TItem item)` | `string` |  |
| `TransformValueScale(ScaleBase scale)` | [`ScaleBase`](https://blazor.radzen.com/docs/api/Radzen.Blazor.ScaleBase.md) |  |

## Inherited Members

- From [CartesianSeries<TItem>](https://blazor.radzen.com/docs/api/Radzen.Blazor.CartesianSeries-1.md): BandIntersects, CategoryProperty, ChildContent, ClipToPlotRange, ComposeCategory, ComposeValue, CoordinateSystem, Data, Dispose, GetCategories, GetDataLabels, GetMean, GetMedian, GetMode, GetRawValueGetter, GetScaledDataPoints, GetTitle, GetTooltipPosition, GetTrend, Hidden, IncludeZeroInValueScale, Initialize, InsidePolygon, InvokeClick, IsDate, IsNumeric, IsValueNullable, Items, MarkerSize, MarkerType, Markers, MeasureLegend, MeasureLegendItems, Overlays, PickColor, RenderLegendItem, RenderOverlays, RenderSharedTooltipItem, RenderTopOverlays, RenderingOrder, RequireChart, ShowInLegend, ShowLineInLegend, Title, TooltipClass, TooltipLabel, TooltipTemplate, TooltipTitle, TransformCategoryScale, TryGetPlotRange, ValueAxisName, ValueProperty, Visible
- From [RadzenChartComponentBase](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenChartComponentBase.md): Chart, DidParameterChange, ShouldRefreshChart, ValidateParameters
- From ComponentBase: Assets, AssignedRenderMode, DispatchExceptionAsync, InvokeAsync, OnAfterRender, OnAfterRenderAsync, OnInitialized, OnInitializedAsync, OnParametersSet, OnParametersSetAsync, RendererInfo, ShouldRender, StateHasChanged

