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

ChartAxisLabelsRotationBuilder

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


            @(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 - ChartAxisLabelRotationAlignment

The ChartAxisLabelRotationAlignment configuration.

Example


            @(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?