Kendo.Mvc.UI.Fluent.ChartAxisLabelsRotationBuilder

Defines the fluent interface for configuring Chart axis labels rotation.

Methods

Angle(System.String)

Sets the axis labels rotation angle.

Parameters

rotation System.String

The labels rotation angle.

Angle(System.Int32)

Sets the axis labels rotation angle.

Parameters

rotation System.Int32

The labels rotation angle.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .ValueAxis(axis => axis
        .Numeric()
        .Min(0).Max(100)
        .Labels(lbl=>lbl.Rotation(rotate=>rotate.Angle(-45)))
    )
)

Align(Kendo.Mvc.UI.ChartAxisLabelRotationAlignment)

Sets the axis labels rotation alignment.

Parameters

align Kendo.Mvc.UI.ChartAxisLabelRotationAlignment

The ChartAxisLabelRotationAlignment configuration.

Example (ASPX)

@(Html.Kendo().Chart()
    .Name("Chart")
    .ValueAxis(axis => axis
        .Numeric()
        .Min(0).Max(100)
        .Labels(lbl=>lbl
            .Rotation(rotate=>rotate.Angle(30).Align(ChartAxisLabelRotationAlignment.Center))
        )
    )
)
In this article
Not finding the help you need?