\Kendo\Dataviz\UI\StockChartSeriesItemLabels

A PHP class representing the labels setting of StockChartSeriesItem.

Methods

background

The background color of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

border

The border of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

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

Example - using \Kendo\Dataviz\UI\StockChartSeriesItemLabelsBorder

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

Example - using array

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

color

The text color of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

font

The font style of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

format

The format of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

margin

The margin of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value float|

Example - using float

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

padding

The padding of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value float|

Example - using float

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

position

Defines the position of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

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

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

visible

The visibility of the labels.

Returns

\Kendo\Dataviz\UI\StockChartSeriesItemLabels

Parameters

$value boolean|\Kendo\JavaScriptFunction

Example - using boolean

<?php
$labels = new \Kendo\Dataviz\UI\StockChartSeriesItemLabels();
$labels->visible(true);
?>

Example - using \Kendo\JavaScriptFunction

<?php
$labels = new \Kendo\Dataviz\UI\StockChartSeriesItemLabels();
$labels->visible(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?