\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

A PHP class representing the plotBand setting of ChartYAxisItemPlotBands.

Methods

color

The color of the plot band.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

Parameters

$value string

Example

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

from

The start position of the plot band in axis units.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

Parameters

$value float

Example

<?php
$plotBand = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBand();
$plotBand->from(1);
?>

label

The label configuration of the plotband.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

Parameters

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

Example - using \Kendo\Dataviz\UI\ChartYAxisItemPlotBandLabel

<?php
$plotBand = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBand();
$label = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBandLabel();
$align = 'value';
$label->align($align);
$plotBand->label($label);
?>

Example - using array

<?php
$plotBand = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBand();
$align = 'value';
$plotBand->label(array('align' => $align));
?>

opacity

The opacity of the plot band.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

Parameters

$value float

Example

<?php
$plotBand = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBand();
$plotBand->opacity(1);
?>

to

The end position of the plot band in axis units.

Returns

\Kendo\Dataviz\UI\ChartYAxisItemPlotBand

Parameters

$value float

Example

<?php
$plotBand = new \Kendo\Dataviz\UI\ChartYAxisItemPlotBand();
$plotBand->to(1);
?>
In this article
Not finding the help you need?