\Kendo\Dataviz\UI\ChartCategoryAxisItemLabelsRotation

A PHP class representing the rotation setting of ChartCategoryAxisItemLabels.

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\ChartCategoryAxisItemLabelsRotation

Parameters

$value string

Example

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

angle

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

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemLabelsRotation

Parameters

$value float|string

Example - using float

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

Example - using string

<?php
$rotation = new \Kendo\Dataviz\UI\ChartCategoryAxisItemLabelsRotation();
$rotation->angle('value');
?>
In this article
Not finding the help you need?