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

ChartAxisTicksBuilder

Methods

Size(System.Int32)

Sets the length of the tick line in pixels.

Parameters

size - System.Int32

The value that configures the length.

Example


            @(Html.Kendo().Chart()
                      .Name("chart")
                      .CategoryAxis(axis => axis.MajorTicks(ticks => ticks.Size(6)))
            )

Visible(System.Boolean)

Sets the ticks visibility.

Parameters

visible - System.Boolean

The value that toggles the visibility of the ticks.

Example


            @(Html.Kendo().Chart()
                      .Name("chart")
                      .CategoryAxis(axis => axis.MajorTicks(ticks => ticks.Visible(false)))
            )

Skip(System.Double)

Sets the skip of the axis major ticks.

Parameters

skip - System.Double

The value that configures the Skip option.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorTicks(lines => lines.Skip(2)))
            )

Step(System.Double)

Sets the step of the axis major ticks.

Parameters

step - System.Double

The value that configures the Step option..

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorTicks(lines => lines.Step(2)))
            )

Color(System.String)

Sets the color of the axis major ticks lines.

Parameters

color - System.String

The value that configures the color.

Example


            @(Html.Kendo().Chart()
                      .Name("Chart")
                      .CategoryAxis(axis => axis.MajorTicks(lines => lines.Color("red")))
            )

In this article
Not finding the help you need?