\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
A PHP class representing the label setting of ChartValueAxisItemPlotBand.
Methods
align
The position of the plotband label.The supported values are: "left" - the plotband label is positioned on the left; "right" - the plotband label is positioned on the right or "center" - the plotband label is positioned in the center.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->align('value');
?>
background
The background color of the label. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->background('value');
?>
border
The border of the label.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelBorder|array
Example - using \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelBorder
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$border = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelBorder();
$color = 'value';
$border->color($color);
$label->border($border);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$color = 'value';
$label->border(array('color' => $color));
?>
color
The text color of the label. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->color('value');
?>
font
The font style of the label.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->font('value');
?>
margin
The margin of the label. A numeric value will set all margins.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value float|\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelMargin|array
Example - using float
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->margin(1);
?>
Example - using \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelMargin
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$margin = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelMargin();
$bottom = 1;
$margin->bottom($bottom);
$label->margin($margin);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$bottom = 1;
$label->margin(array('bottom' => $bottom));
?>
padding
The padding of the label. A numeric value will set all paddings.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value float|\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelPadding|array
Example - using float
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->padding(1);
?>
Example - using \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelPadding
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$padding = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabelPadding();
$bottom = 1;
$padding->bottom($bottom);
$label->padding($padding);
?>
Example - using array
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$bottom = 1;
$label->padding(array('bottom' => $bottom));
?>
position
The position of the label.The supported values are: "top" - the axis label is positioned on the top; "bottom" - the axis label is positioned on the bottom or "center" - the axis label is positioned in the center.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->position('value');
?>
rotation
The rotation angle of the label. By default the label is not rotated.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value float
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->rotation(1);
?>
text
The text of the label.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value string
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->text('value');
?>
visible
If set to false the chart will not display the label.
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value boolean
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->visible(true);
?>
visual
A function that can be used to create a custom visual for the label. The available argument fields are: text - the label text.; rect - the kendo.geometry.Rect that defines where the visual should be rendered.; sender - the chart instance (may be undefined).; options - the label options. or createVisual - a function that can be used to get the default visual..
Returns
\Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$label = new \Kendo\Dataviz\UI\ChartValueAxisItemPlotBandLabel();
$label->visual(new \Kendo\JavaScriptFunction('function() { }'));
?>