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

Defines the fluent interface for configuring ChartAxisTicks.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartAxisTicksBuilder

Inheritance: objectChartAxisTicksBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartAxisTicksBuilder class.

C#
public ChartAxisTicksBuilder(ChartAxisTicks gaugeTicks)
Parameters:gaugeTicksChartAxisTicks

The chart axis ticks.

Methods

Sets the color of the axis major ticks lines.

C#
public ChartAxisTicksBuilder Color(string color)
Parameters:colorstring

The value that configures the color.

Returns:

ChartAxisTicksBuilder

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

Sets the length of the tick line in pixels.

C#
public ChartAxisTicksBuilder Size(int size)
Parameters:sizeint

The value that configures the length.

Returns:

ChartAxisTicksBuilder

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

Sets the skip of the axis major ticks.

C#
public ChartAxisTicksBuilder Skip(double skip)
Parameters:skipdouble

The value that configures the Skip option.

Returns:

ChartAxisTicksBuilder

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

Sets the step of the axis major ticks.

C#
public ChartAxisTicksBuilder Step(double step)
Parameters:stepdouble

The value that configures the Step option..

Returns:

ChartAxisTicksBuilder

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

Sets the ticks visibility.

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

The value that toggles the visibility of the ticks.

Returns:

ChartAxisTicksBuilder

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