\Kendo\Dataviz\UI\SankeyLegendItem
A PHP class representing the item setting of SankeyLegend.
Methods
areaBackground
The background color of the legend item square element. Accepts a valid CSS color string, including HEX and RGB. Defaults to the corresponding node color.
Returns
\Kendo\Dataviz\UI\SankeyLegendItem
Parameters
$value string
Example
<?php
$item = new \Kendo\Dataviz\UI\SankeyLegendItem();
$item->areaBackground('value');
?>
areaOpacity
The opacity of the legend item square element. Defaults to the corresponding node opacity.
Returns
\Kendo\Dataviz\UI\SankeyLegendItem
Parameters
$value float
Example
<?php
$item = new \Kendo\Dataviz\UI\SankeyLegendItem();
$item->areaOpacity(1);
?>
cursor
The cursor style of the legend item.
Returns
\Kendo\Dataviz\UI\SankeyLegendItem
Parameters
$value string
Example
<?php
$item = new \Kendo\Dataviz\UI\SankeyLegendItem();
$item->cursor('value');
?>
visual
A function that can be used to create a custom visual for the legend items. The available argument fields are: options—The item options. or createVisual—A function for getting the default visual..
Returns
\Kendo\Dataviz\UI\SankeyLegendItem
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$item = new \Kendo\Dataviz\UI\SankeyLegendItem();
$item->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>