\Kendo\Dataviz\UI\SankeyDataLink

A PHP class representing the link setting of SankeyDataLinks.

Methods

color

The color of the link. The color is used when the colorType option is set to static. Accepts a valid CSS color string, including hex and rgb.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value string

Example

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

colorType

Defines the color type of the link.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value string

Example

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$link->colorType('value');
?>

highlight

The link highlight configuration options.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

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

Example - using \Kendo\Dataviz\UI\SankeyDataLinkHighlight

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$highlight = new \Kendo\Dataviz\UI\SankeyDataLinkHighlight();
$inactiveOpacity = 1;
$highlight->inactiveOpacity($inactiveOpacity);
$link->highlight($highlight);
?>

Example - using array

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$inactiveOpacity = 1;
$link->highlight(array('inactiveOpacity' => $inactiveOpacity));
?>

opacity

The opacity of the links.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value float

Example

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

sourceId

The source node ID of the link. The source node is the node from which the link originates.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value float|string

Example - using float

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$link->sourceId(1);
?>

Example - using string

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$link->sourceId('value');
?>

targetId

The target node ID of the link. The target node is the node to which the link points.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value float|string

Example - using float

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$link->targetId(1);
?>

Example - using string

<?php
$link = new \Kendo\Dataviz\UI\SankeyDataLink();
$link->targetId('value');
?>

value

The value of the link. The value represents the weight of the link and determines the width of the link.

Returns

\Kendo\Dataviz\UI\SankeyDataLink

Parameters

$value float

Example

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