\Kendo\Dataviz\UI\SankeyDataNode

A PHP class representing the node setting of SankeyDataNodes.

Methods

align

The alignment of the node.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value string

Example

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->align('value');
?>

color

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

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value string

Example

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

id

The ID of the node. The ID is used to connect the nodes with the links.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value float|string

Example - using float

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->id(1);
?>

Example - using string

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->id('value');
?>

label

The label of the node.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value \Kendo\Dataviz\UI\SankeyDataNodeLabel|array

Example - using \Kendo\Dataviz\UI\SankeyDataNodeLabel

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$label = new \Kendo\Dataviz\UI\SankeyDataNodeLabel();
$align = 'value';
$label->align($align);
$node->label($label);
?>

Example - using array

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$align = 'value';
$node->label(array('align' => $align));
?>

offset

The offset applied to the node's position.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value \Kendo\Dataviz\UI\SankeyDataNodeOffset|array

Example - using \Kendo\Dataviz\UI\SankeyDataNodeOffset

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$offset = new \Kendo\Dataviz\UI\SankeyDataNodeOffset();
$left = 1;
$offset->left($left);
$node->offset($offset);
?>

Example - using array

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$left = 1;
$node->offset(array('left' => $left));
?>

opacity

The opacity of the node.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value float

Example

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->opacity(1);
?>

padding

The minimum vertical space between two nodes.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value float

Example

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->padding(1);
?>

width

The width of the node.

Returns

\Kendo\Dataviz\UI\SankeyDataNode

Parameters

$value float

Example

<?php
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$node->width(1);
?>
In this article
Not finding the help you need?