Kendo.Mvc.UI.Fluent.ChartAxisLabelsBuilder
Defines the fluent interface for configuring the chart labels.
Methods
Mirror(System.Boolean)
Renders the axis labels on the other side.
Parameters
mirror System.Boolean
A value indicating whether to render the axis labels on the other side.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric().Labels(labels => labels.Mirror(true))
)
.CategoryAxis(axis => axis
.Categories(s => s.DateString)
// Move the value axis to the right side
.AxisCrossingValue(5)
)
)
Position(Kendo.Mvc.UI.ChartAxisLabelsPosition)
Specifies the position of the labels.
Parameters
position Kendo.Mvc.UI.ChartAxisLabelsPosition
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric().Labels(labels => labels.Position(ChartAxisLabelsPosition.End))
)
.CategoryAxis(axis => axis
.Categories(s => s.DateString)
// Move the value axis to the right side
.AxisCrossingValue(5)
)
)
Step(System.Int32)
Label rendering step.
Parameters
step System.Int32
A value indicating the step at which labels are rendered. Every n-th label is rendered where n is the step.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric()
.Min(0).Max(100)
.Labels(lbl=>lbl.Step(2))
)
)
Skip(System.Int32)
Label rendering skip.
Parameters
skip System.Int32
Skips rendering the first n labels.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric()
.Min(0).Max(100)
.Labels(lbl=>lbl.Skip(2))
)
)
Rotation(System.String)
Specifies the labels rotation angle.
Parameters
rotation System.String
The rotation angle of the labels.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric()
.Min(0).Max(100)
.Labels(lbl=>lbl.Rotation(-45))
)
)
Rotation(System.Action<Kendo.Mvc.UI.Fluent.ChartAxisLabelsRotationBuilder>)
Specifies the labels rotation.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.ChartAxisLabelsRotationBuilder>
The labels rotation configurator.
Example (ASPX)
@(Html.Kendo().Chart()
.Name("Chart")
.ValueAxis(axis => axis
.Numeric()
.Min(0).Max(100)
.Labels(lbl=>lbl.Rotation(rotate=>rotate.Angle(-45)))
)
)