New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent interface for configuring ChartAxisCrosshair.

Definition

Constructors

Initializes a new instance of the ChartLineBuilder class.

C#
public ChartAxisCrosshairBuilder(ChartAxisCrosshair crosshair)
Parameters:crosshairChartAxisCrosshair

The chart crosshair.

Methods

Configures the crosshair tooltip options.

C#
public ChartAxisCrosshairBuilder Tooltip(Action<ChartAxisCrosshairTooltipBuilder> configurator)
Parameters:configuratorAction<ChartAxisCrosshairTooltipBuilder>

The action that configures the tooltip settings.

Returns:

ChartAxisCrosshairBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt; axis
.Crosshair(crosshair =&gt; crosshair.Visible(true).Tooltip(tt =&gt; tt.Visible(true).Background("grey")))
)
)

Sets the visibility of the crosshair. By default, the crosshair is not visible.

C#
public ChartAxisCrosshairBuilder Visible(bool visible)
Parameters:visiblebool

The value that toggles the visibility of the crosshair.

Returns:

ChartAxisCrosshairBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis =&gt; axis
.Crosshair(crosshair =&gt; crosshair.Visible(true))
)
)