\Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation

A PHP class representing the rotation setting of ChartXAxisItemLabels.

Methods

align

The alignment of the rotated labels relative to the slot center. The supported values are "end" and "center". By default the closest end of the label will be aligned to the center. If set to "center", the center of the rotated label will be aligned instead.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation

Parameters

$value string

Example

<?php
$rotation = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation();
$rotation->align('value');
?>

angle

The rotation angle of the labels. By default the labels are not rotated. Can be set to "auto" in which case the labels will be rotated only if the slot size is not sufficient for the entire labels.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation

Parameters

$value float |string

Example - using float

<?php
$rotation = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation();
$rotation->angle(1);
?>

Example - using string

<?php
$rotation = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsRotation();
$rotation->angle('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy