\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

A PHP class representing the plotBand setting of ChartXAxisItemPlotBands.

Methods

color

The color of the plot band.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

Parameters

$value string

Example

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

from

The start position of the plot band in axis units.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

Parameters

$value float

Example

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

label

The label configuration of the plotband.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

Parameters

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

Example - using \Kendo\Dataviz\UI\ChartXAxisItemPlotBandLabel

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

Example - using array

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

opacity

The opacity of the plot band.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

Parameters

$value float

Example

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

to

The end position of the plot band in axis units.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemPlotBand

Parameters

$value float

Example

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