\Kendo\Dataviz\UI\SankeyDataNodeLabel
A PHP class representing the label setting of SankeyDataNode.
Methods
align
The alignment of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->align('value');
?>
border
The border of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value \Kendo\Dataviz\UI\SankeyDataNodeLabelBorder|array
Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabelBorder
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$border = new \Kendo\Dataviz\UI\SankeyDataNodeLabelBorder();
$color = 'value';
$border->color($color);
$label->border($border);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$color = 'value';
$label->border(array('color' => $color));
?>
color
The color of the label. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->color('value');
?>
font
The font of the label. Accepts a valid CSS font string. For example, "bold 12px Arial".
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->font('value');
?>
margin
The margin of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value \Kendo\Dataviz\UI\SankeyDataNodeLabelMargin|array
Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabelMargin
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$margin = new \Kendo\Dataviz\UI\SankeyDataNodeLabelMargin();
$left = 1;
$margin->left($left);
$label->margin($margin);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$left = 1;
$label->margin(array('left' => $left));
?>
offset
The offset applied to the label's position.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value \Kendo\Dataviz\UI\SankeyDataNodeLabelOffset|array
Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabelOffset
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$offset = new \Kendo\Dataviz\UI\SankeyDataNodeLabelOffset();
$left = 1;
$offset->left($left);
$label->offset($offset);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$left = 1;
$label->offset(array('left' => $left));
?>
padding
The padding of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value float|\Kendo\Dataviz\UI\SankeyDataNodeLabelPadding|array
Example - using float
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->padding(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabelPadding
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$padding = new \Kendo\Dataviz\UI\SankeyDataNodeLabelPadding();
$bottom = 1;
$padding->bottom($bottom);
$label->padding($padding);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$bottom = 1;
$label->padding(array('bottom' => $bottom));
?>
position
The position of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->position('value');
?>
stroke
The stroke of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value \Kendo\Dataviz\UI\SankeyDataNodeLabelStroke|array
Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabelStroke
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$stroke = new \Kendo\Dataviz\UI\SankeyDataNodeLabelStroke();
$color = 'value';
$stroke->color($color);
$label->stroke($stroke);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$color = 'value';
$label->stroke(array('color' => $color));
?>
text
The text of the label.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->text('value');
?>
visible
If set to false, the label will not be displayed.
Returns
\Kendo\Dataviz\UI\SankeyDataNodeLabel
Parameters
$value boolean
Example
<?php
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$label->visible(true);
?>