\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

A PHP class representing the label setting of ChartYAxisItemNotesDataItem.

Methods

background

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

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

border

The border of the label.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

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

Example - using \Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabelBorder

<?php
$label = new \Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel();
$border = new \Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabelBorder();
$color = 'value';
$border->color($color);
$label->border($border);
?>

Example - using array

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

color

The text color of the note label. Accepts a valid CSS color string, including hex and rgb.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

font

The font style of the note label.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

format

The format used to display the note label. Uses kendo.format. Contains one placeholder ("{0}") which represents the axis value.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

position

The position of the y axis note label.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

rotation

The rotation angle of the label. By default the label are not rotated.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value float

Example

<?php
$label = new \Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel();
$label->rotation(1);
?>

template

The template which renders the labels.The fields which can be used in the template are:

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

text

The label note text.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value string

Example

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

visible

If set to true the chart will display the y axis notes label. By default the y axis notes label are visible.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemNotesDataItemLabel

Parameters

$value boolean

Example

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

Give article feedback

Tell us how we can improve the information

close
Dummy