\Kendo\Dataviz\UI\SankeyData
A PHP class representing the data setting of Sankey.
Methods
addLink
Adds one or more SankeyDataLink to the SankeyData.
Returns
\Kendo\Dataviz\UI\SankeyData
Parameters
$value[, $value2, ...] \Kendo\Dataviz\UI\SankeyDataLink|array
Example - using \Kendo\Dataviz\UI\SankeyDataLink
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$color = 'value';
$link->color($color);
$data->addLink($link);
?>
Example - using array
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$color = 'value';
$data->addLink(array('color' => $color));
?>
Example - adding more than one SankeyDataLink
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$first = new \Kendo\Dataviz\UI\SankeyDataLink();
$second = new \Kendo\Dataviz\UI\SankeyDataLink();
$data->addLink($first, $second);
?>
addNode
Adds one or more SankeyDataNode to the SankeyData.
Returns
\Kendo\Dataviz\UI\SankeyData
Parameters
$value[, $value2, ...] \Kendo\Dataviz\UI\SankeyDataNode|array
Example - using \Kendo\Dataviz\UI\SankeyDataNode
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$node = new \Kendo\Dataviz\UI\SankeyDataNode();
$align = 'value';
$node->align($align);
$data->addNode($node);
?>
Example - using array
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$align = 'value';
$data->addNode(array('align' => $align));
?>
Example - adding more than one SankeyDataNode
<?php
$data = new \Kendo\Dataviz\UI\SankeyData();
$first = new \Kendo\Dataviz\UI\SankeyDataNode();
$second = new \Kendo\Dataviz\UI\SankeyDataNode();
$data->addNode($first, $second);
?>