\Kendo\Dataviz\UI\CircularGaugeScaleLabels

A PHP class representing the labels setting of CircularGaugeScale.

Methods

background

The background color of the labels. Any valid CSS color string will work here, including hex and rgb

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string

Example

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

border

The border of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

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

Example - using \Kendo\Dataviz\UI\CircularGaugeScaleLabelsBorder

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

Example - using array

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

color

The text color of the labels. Any valid CSS color string will work here, including hex and rgb.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string

Example

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

font

The font style of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string

Example

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

format

The format of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string

Example

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

margin

The margin of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value float|\Kendo\Dataviz\UI\CircularGaugeScaleLabelsMargin|array

Example - using float

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

Example - using \Kendo\Dataviz\UI\CircularGaugeScaleLabelsMargin

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

Example - using array

<?php
$labels = new \Kendo\Dataviz\UI\CircularGaugeScaleLabels();
$bottom = 1;
$labels->margin(array('bottom' => $bottom));
?>

padding

The padding of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value float|\Kendo\Dataviz\UI\CircularGaugeScaleLabelsPadding|array

Example - using float

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

Example - using \Kendo\Dataviz\UI\CircularGaugeScaleLabelsPadding

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

Example - using array

<?php
$labels = new \Kendo\Dataviz\UI\CircularGaugeScaleLabels();
$bottom = 1;
$labels->padding(array('bottom' => $bottom));
?>

position

The labels positions.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string

Example

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

template

The label template. Template variables: * value - the value

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

visible

The visibility of the labels.

Returns

\Kendo\Dataviz\UI\CircularGaugeScaleLabels

Parameters

$value boolean

Example

<?php
$labels = new \Kendo\Dataviz\UI\CircularGaugeScaleLabels();
$labels->visible(true);
?>
In this article
Not finding the help you need?