\Kendo\Dataviz\UI\StockChartLegendTitle

A PHP class representing the title setting of StockChartLegend.

Methods

align

The alignment of the title. "center" - the text is aligned to the middle.; "left" - the text is aligned to the left. or "right" - the text is aligned to the right..

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value string

Example

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

background

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

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value string

Example

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$title->background('value');
?>

border

The border of the title.

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

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

Example - using \Kendo\Dataviz\UI\StockChartLegendTitleBorder

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$border = new \Kendo\Dataviz\UI\StockChartLegendTitleBorder();
$color = 'value';
$border->color($color);
$title->border($border);
?>

Example - using array

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$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\StockChartLegendTitle

Parameters

$value string

Example

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

font

The font of the title.

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value string

Example

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$title->font('value');
?>

margin

The margin of the title. A numeric value will set all margins.

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value float|\Kendo\Dataviz\UI\StockChartLegendTitleMargin|array

Example - using float

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$title->margin(1);
?>

Example - using \Kendo\Dataviz\UI\StockChartLegendTitleMargin

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$margin = new \Kendo\Dataviz\UI\StockChartLegendTitleMargin();
$bottom = 1;
$margin->bottom($bottom);
$title->margin($margin);
?>

Example - using array

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$bottom = 1;
$title->margin(array('bottom' => $bottom));
?>

padding

The padding of the title. A numeric value will set all margins.

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value float|\Kendo\Dataviz\UI\StockChartLegendTitlePadding|array

Example - using float

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

Example - using \Kendo\Dataviz\UI\StockChartLegendTitlePadding

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$padding = new \Kendo\Dataviz\UI\StockChartLegendTitlePadding();
$bottom = 1;
$padding->bottom($bottom);
$title->padding($padding);
?>

Example - using array

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$bottom = 1;
$title->padding(array('bottom' => $bottom));
?>

position

The position of the title. "bottom" - the title is positioned on the bottom. or "top" - the title is positioned on the top..

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value string

Example

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$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\StockChartLegendTitle

Parameters

$value string

Example

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$title->text('value');
?>

visible

If set to true the chart will display the title. By default the title will be displayed.

Returns

\Kendo\Dataviz\UI\StockChartLegendTitle

Parameters

$value boolean

Example

<?php
$title = new \Kendo\Dataviz\UI\StockChartLegendTitle();
$title->visible(true);
?>
In this article
Not finding the help you need?