\Kendo\Dataviz\UI\StockChartTitle

A PHP class representing the title setting of StockChart.

Methods

align

The alignment of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

background

The background color of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

border

The border of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

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

Example - using \Kendo\Dataviz\UI\StockChartTitleBorder

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

Example - using array

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

Parameters

$value string

Example

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

description

The accessible description of the Chart. The description is announced by screen readers when the Chart is focused.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

font

The font of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

margin

The margin of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value float|

Example - using float

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

padding

The padding of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value float|

Example - using float

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

position

The position of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

text

The title of the chart. You can also set the text directly for a title with default options.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value string

Example

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

visible

The visibility of the title.

Returns

\Kendo\Dataviz\UI\StockChartTitle

Parameters

$value boolean

Example

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