ChartAxisCrosshairBuilder
Methods
Tooltip(System.Action)
Configures the crosshair tooltip options.
Parameters
configurator - System.Action<ChartAxisCrosshairTooltipBuilder>
The action that configures the tooltip settings.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Crosshair(crosshair => crosshair.Visible(true).Tooltip(tt => tt.Visible(true).Background("grey")))
)
)
Visible(System.Boolean)
Sets the visibility of the crosshair. By default, the crosshair is not visible.
Parameters
visible - System.Boolean
The value that toggles the visibility of the crosshair.
Example
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Crosshair(crosshair => crosshair.Visible(true))
)
)
Color(System.String)
Sets the line color
Parameters
color - System.String
The line color (CSS format).
Example
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.MajorGridLines(lines => lines.Color("#f00")))
)
Width(System.Int32)
Sets the line width
Parameters
width - System.Int32
The line width.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.MajorGridLines(lines => lines.Width(2)))
)
DashType(Kendo.Mvc.UI.ChartDashType)
Sets the line dashType.
Parameters
dashType - ChartDashType
The line dashType.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.MajorGridLines(lines => lines.DashType(ChartDashType.Dot)))
)