\Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels

A PHP class representing the labels setting of ChartLegendInactiveItems.

Methods

color

The text color of the labels. Accepts a valid CSS color string, including hex and rgb.

Returns

\Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels

Parameters

$value string

Example

<?php
$labels = new \Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels();
$labels->color('value');
?>

font

The font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".

Returns

\Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels

Parameters

$value string

Example

<?php
$labels = new \Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels();
$labels->font('value');
?>

template

The template which renders the labels.The fields which can be used in the template are: text - the text the legend item.; series - the data series.; value - the point value. (only for donut and pie charts) or percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts..

Returns

\Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$labels = new \Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels();
$labels->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$labels = new \Kendo\Dataviz\UI\ChartLegendInactiveItemsLabels();
$labels->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?