Crosshair configuration of IChartAxis. Add inside a RadzenCategoryAxis or RadzenValueAxis to draw a crosshair line for that axis while hovering the chart xAxis.crosshair / yAxis.crosshair. The category axis owns the vertical line; the value axis owns the horizontal line.
IComponent
IHandleEvent
IHandleAfterRender
RadzenChartComponentBase.Initialize
RadzenChartComponentBase.SetParametersAsync
RadzenChartComponentBase.ValidateParameters
RadzenChartComponentBase.DidParameterChange
RadzenChartComponentBase.Chart
ComponentBase.BuildRenderTree
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 RadzenAxisCrosshair : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRenderCrosshair configuration of IChartAxis. Add inside a RadzenCategoryAxis or RadzenValueAxis to draw a crosshair line for that axis while hovering the chart xAxis.crosshair / yAxis.crosshair. The category axis owns the vertical line; the value axis owns the horizontal line.
public RadzenAxisCrosshair()The axis which this configuration applies to.
public IChartAxis ChartAxis { set; }
| Type | Description |
|---|---|
| IChartAxis | The axis which this configuration applies to. |
Specifies whether to display a small label at the axis showing the formatted axis value where the crosshair crosses it. The label uses the parent axis's Formatter / FormatString. Set to false by default.
public bool Label { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether to display a small label at the axis showing the formatted axis value where the crosshair crosses it. The label uses the parent axis's Formatter / FormatString. Set to false by default. |
Specifies the crosshair line style. Defaults to Dashed.
public LineType LineType { get; set; }
| Type | Description |
|---|---|
| LineType | Specifies the crosshair line style. Defaults to Dashed. |
Specifies whether the crosshair snaps to the nearest data point on this axis. Set to true by default. When false the line follows the cursor position exactly. Only meaningful for the category axis line; ignored on the value axis.
public bool Snap { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether the crosshair snaps to the nearest data point on this axis. Set to true by default. When false the line follows the cursor position exactly. Only meaningful for the category axis line; ignored on the value axis. |
Specifies the crosshair line color. Any valid CSS color. When null the default var(--rz-chart-crosshair-color) is used.
public string Stroke { get; set; }
| Type | Description |
|---|---|
| string | Specifies the crosshair line color. Any valid CSS color. When null the default var(--rz-chart-crosshair-color) is used. |
Specifies the crosshair line width in pixels. Set to 1 by default.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Specifies the crosshair line width in pixels. Set to 1 by default. |
Specifies whether to display the crosshair line for this axis. Set to false by default.
public bool Visible { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether to display the crosshair line for this axis. Set to false by default. |
protected override bool ShouldRefreshChart(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| bool |