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

ChartAxisCrosshairBuilder

Methods

Tooltip(System.Action)

Configures the crosshair tooltip

Parameters

configurator - System.Action<ChartAxisCrosshairTooltipBuilder>

The tooltip configuration action

Visible(System.Boolean)

Sets the crosshair visible

Parameters

visible - System.Boolean

The crosshair visible.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .Series(series => {
                           .series.Bar(new double[] { 15.7, 16.7, 20, 23.5, 26.6 }).Name("World");
                           .series.Bar(new double[] { 67.96, 68.93, 75, 74, 78 }).Name("United States");
                      })
                      .CategoryAxis(axis => axis
                           .Categories("2005", "2006", "2007", "2008", "2009")
                           .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)))
            )

In this article
Not finding the help you need?