\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

A PHP class representing the labels setting of StockChartNavigatorSeriesItem.

Methods

background

The background color of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string

Example

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

border

The border of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

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

Example - using \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabelsBorder

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$border = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabelsBorder();
$color = 'value';
$border->color($color);
$labels->border($border);
?>

Example - using array

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$color = 'value';
$labels->border(array('color' => $color));
?>

color

The text color of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string

Example

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

font

The font style of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string

Example

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

format

The format of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string

Example

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$labels->format('value');
?>

margin

The margin of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value float

Example - using float

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

padding

The padding of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value float

Example - using float

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

position

Defines the position of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string

Example

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

template

The template which renders the chart series label.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$labels->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$labels->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

visible

The visibility of the labels.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels

Parameters

$value boolean

Example

<?php
$labels = new \Kendo\Dataviz\UI\StockChartNavigatorSeriesItemLabels();
$labels->visible(true);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy