\Kendo\Dataviz\UI\SankeyLegendLabels
A PHP class representing the labels setting of SankeyLegend.
Methods
color
The text color of the labels. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\SankeyLegendLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$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\SankeyLegendLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$labels->font('value');
?>
margin
The margin of the labels. A numeric value will set all margins.
Returns
\Kendo\Dataviz\UI\SankeyLegendLabels
Parameters
$value float|\Kendo\Dataviz\UI\SankeyLegendLabelsMargin|array
Example - using float
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$labels->margin(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyLegendLabelsMargin
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$margin = new \Kendo\Dataviz\UI\SankeyLegendLabelsMargin();
$bottom = 1;
$margin->bottom($bottom);
$labels->margin($margin);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$bottom = 1;
$labels->margin(array('bottom' => $bottom));
?>
padding
The padding of the labels. A numeric value will set all paddings.
Returns
\Kendo\Dataviz\UI\SankeyLegendLabels
Parameters
$value float|\Kendo\Dataviz\UI\SankeyLegendLabelsPadding|array
Example - using float
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$labels->padding(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyLegendLabelsPadding
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$padding = new \Kendo\Dataviz\UI\SankeyLegendLabelsPadding();
$bottom = 1;
$padding->bottom($bottom);
$labels->padding($padding);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLegendLabels();
$bottom = 1;
$labels->padding(array('bottom' => $bottom));
?>