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

Defines the fluent interface for configuring Chart axis labels rotation.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartAxisLabelsRotationBuilder

Inheritance: objectChartAxisLabelsRotationBuilder

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 ChartAxisLabelsRotationBuilder class.

C#
public ChartAxisLabelsRotationBuilder(ChartAxisLabelsRotation rotation)
Parameters:rotationChartAxisLabelsRotation

The ChartAxisLabelsRotation settings.

Methods

Sets the axis labels rotation alignment.

C#
public ChartAxisLabelsRotationBuilder Align(ChartAxisLabelRotationAlignment align)
Parameters:alignChartAxisLabelRotationAlignment

The ChartAxisLabelRotationAlignment configuration.

Returns:

ChartAxisLabelsRotationBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Labels(labels => labels.Rotation(r => r.Align(ChartAxisLabelRotationAlignment.Center)))
)
)

Sets the axis labels rotation angle.

C#
public ChartAxisLabelsRotationBuilder Angle(int rotation)
Parameters:rotationint

The value that configures the rotation angle.

Returns:

ChartAxisLabelsRotationBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Labels(labels => labels.Rotation(90))
)
)

Sets the axis labels rotation angle.

C#
public ChartAxisLabelsRotationBuilder Angle(string rotation)
Parameters:rotationstring

The value that configures the rotation angle.

Returns:

ChartAxisLabelsRotationBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.CategoryAxis(axis => axis
.Labels(labels => labels.Rotation("90"))
)
)