New to Telerik UI for Blazor? Start a free 30-day trial

Stock Chart Crosshairs

Updated on Oct 1, 2026

The Crosshairs are lines perpendicular to the axes that allow the user to see the exact value of a point at the current cursor position.

To enable the Crosshairs for the Category and/or the Value axis:

  1. Inside the <StockChartCategoryAxis> include the the <StockChartCategoryAxisCrosshair>, for the <StockChartValueAxis>, include <StockChartValueAxisCrosshair> tag.
  2. Set its Visible parameter to true.
  3. (optional) To enable tooltips for the crosshair add the <StockChartCategoryAxisCrosshairTooltip> for the Category axis and StockChartValueAxisCrosshairTooltip for the Value axis, and set its Visible parameter to true.

Basic configuration of the Crosshairs of the Stock Chart.

Example
View Source
Loading ...

Crosshair Appearance Settings

You can control the appearance of the crosshair by setting the following properties of the <StockChart*AxisName*AxisCrosshair>:

  • Color - set the Color property to a valid CSS color.
  • Opacity - set the Opacity of the crosshair.
  • Width - set the Width of the crosshair.

Customize the appearance of the crosshairs

Example
View Source
Loading ...

Crosshair Tooltip Template

The crosshair tooltip provides a <Template> where you can control the rendering of the tooltip. The context gives information of the FormattedValue which maps to the default rendering of the tooltip and is formatted as a string.

For the Value axis you can parse that value to the type in your model (decimal, double, etc.).

For the Category axis the FormattedValue represents the labels of the category axis.

Use the Crosshair Tooltip template to customize the value

Example
View Source
Loading ...

See Also