\Kendo\Dataviz\UI\ChartLegendTitle

A PHP class representing the title setting of ChartLegend.

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\ChartLegendTitle

Parameters

$value string

Example

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

background

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

Returns

\Kendo\Dataviz\UI\ChartLegendTitle

Parameters

$value string

Example

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

border

The border of the title.

Returns

\Kendo\Dataviz\UI\ChartLegendTitle

Parameters

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

Example - using \Kendo\Dataviz\UI\ChartLegendTitleBorder

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

Example - using array

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

Parameters

$value string

Example

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

font

The font of the title.

Returns

\Kendo\Dataviz\UI\ChartLegendTitle

Parameters

$value string

Example

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

margin

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

Returns

\Kendo\Dataviz\UI\ChartLegendTitle

Parameters

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

Example - using float

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

Example - using \Kendo\Dataviz\UI\ChartLegendTitleMargin

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

Example - using array

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

padding

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

Returns

\Kendo\Dataviz\UI\ChartLegendTitle

Parameters

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

Example - using float

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

Example - using \Kendo\Dataviz\UI\ChartLegendTitlePadding

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

Example - using array

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

Parameters

$value string

Example

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

Parameters

$value string

Example

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

Parameters

$value boolean

Example

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