\Kendo\Dataviz\UI\SankeyLabels
A PHP class representing the labels setting of Sankey.
Methods
align
The alignment of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->align('value');
?>
border
The border of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value \Kendo\Dataviz\UI\SankeyLabelsBorder|array
Example - using \Kendo\Dataviz\UI\SankeyLabelsBorder
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$border = new \Kendo\Dataviz\UI\SankeyLabelsBorder();
$color = 'value';
$border->color($color);
$labels->border($border);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$color = 'value';
$labels->border(array('color' => $color));
?>
color
The color of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->color('value');
?>
font
The font of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->font('value');
?>
margin
The margin of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value \Kendo\Dataviz\UI\SankeyLabelsMargin|array
Example - using \Kendo\Dataviz\UI\SankeyLabelsMargin
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$margin = new \Kendo\Dataviz\UI\SankeyLabelsMargin();
$left = 1;
$margin->left($left);
$labels->margin($margin);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$left = 1;
$labels->margin(array('left' => $left));
?>
offset
The offset applied to the label's position.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value \Kendo\Dataviz\UI\SankeyLabelsOffset|array
Example - using \Kendo\Dataviz\UI\SankeyLabelsOffset
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$offset = new \Kendo\Dataviz\UI\SankeyLabelsOffset();
$left = 1;
$offset->left($left);
$labels->offset($offset);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$left = 1;
$labels->offset(array('left' => $left));
?>
padding
The padding of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value float|\Kendo\Dataviz\UI\SankeyLabelsPadding|array
Example - using float
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->padding(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyLabelsPadding
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$padding = new \Kendo\Dataviz\UI\SankeyLabelsPadding();
$bottom = 1;
$padding->bottom($bottom);
$labels->padding($padding);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$bottom = 1;
$labels->padding(array('bottom' => $bottom));
?>
position
The position of the label.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value string
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->position('value');
?>
stroke
The stroke of the label text.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value \Kendo\Dataviz\UI\SankeyLabelsStroke|array
Example - using \Kendo\Dataviz\UI\SankeyLabelsStroke
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$stroke = new \Kendo\Dataviz\UI\SankeyLabelsStroke();
$color = 'value';
$stroke->color($color);
$labels->stroke($stroke);
?>
Example - using array
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$color = 'value';
$labels->stroke(array('color' => $color));
?>
visible
If set to false, the label will not be displayed.
Returns
\Kendo\Dataviz\UI\SankeyLabels
Parameters
$value boolean
Example
<?php
$labels = new \Kendo\Dataviz\UI\SankeyLabels();
$labels->visible(true);
?>