\Kendo\Dataviz\UI\SankeyLegendTitle
A PHP class representing the title setting of SankeyLegend.
Methods
align
The alignment of the title.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->align('value');
?>
background
The background color of the title. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->background('value');
?>
border
The border of the title.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value \Kendo\Dataviz\UI\SankeyLegendTitleBorder|array
Example - using \Kendo\Dataviz\UI\SankeyLegendTitleBorder
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$border = new \Kendo\Dataviz\UI\SankeyLegendTitleBorder();
$color = 'value';
$border->color($color);
$title->border($border);
?>
Example - using array
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$color = 'value';
$title->border(array('color' => $color));
?>
color
The text color of the title. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->color('value');
?>
font
The font of the title.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->font('value');
?>
margin
The margin of the title. A numeric value will set all margins.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value float|\Kendo\Dataviz\UI\SankeyLegendTitleMargin|array
Example - using float
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->margin(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyLegendTitleMargin
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$margin = new \Kendo\Dataviz\UI\SankeyLegendTitleMargin();
$bottom = 1;
$margin->bottom($bottom);
$title->margin($margin);
?>
Example - using array
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$bottom = 1;
$title->margin(array('bottom' => $bottom));
?>
padding
The padding of the title. A numeric value will set all margins.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value float|\Kendo\Dataviz\UI\SankeyLegendTitlePadding|array
Example - using float
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->padding(1);
?>
Example - using \Kendo\Dataviz\UI\SankeyLegendTitlePadding
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$padding = new \Kendo\Dataviz\UI\SankeyLegendTitlePadding();
$bottom = 1;
$padding->bottom($bottom);
$title->padding($padding);
?>
Example - using array
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$bottom = 1;
$title->padding(array('bottom' => $bottom));
?>
position
The position of the title.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->position('value');
?>
text
The text of the legend title. You can also set the text directly for a title with default options.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value string
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->text('value');
?>
visible
If set to false the Sankey will not display the legend title.
Returns
\Kendo\Dataviz\UI\SankeyLegendTitle
Parameters
$value boolean
Example
<?php
$title = new \Kendo\Dataviz\UI\SankeyLegendTitle();
$title->visible(true);
?>