\Kendo\Dataviz\UI\ArcGaugeScaleLabels

A PHP class representing the labels setting of ArcGaugeScale.

Methods

background

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

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value string

Example

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

border

The border of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

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

Example - using \Kendo\Dataviz\UI\ArcGaugeScaleLabelsBorder

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

Example - using array

<?php
$labels = new \Kendo\Dataviz\UI\ArcGaugeScaleLabels();
$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\ArcGaugeScaleLabels

Parameters

$value string

Example

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

font

The font style of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value string

Example

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

format

The format of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value string

Example

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

margin

The margin of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

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

Example - using float

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

Example - using \Kendo\Dataviz\UI\ArcGaugeScaleLabelsMargin

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

Example - using array

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

padding

The padding of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

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

Example - using float

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

Example - using \Kendo\Dataviz\UI\ArcGaugeScaleLabelsPadding

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

Example - using array

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

position

Sets the labels position

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value string

Example

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

template

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

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

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

visible

The visibility of the labels.

Returns

\Kendo\Dataviz\UI\ArcGaugeScaleLabels

Parameters

$value boolean

Example

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

Give article feedback

Tell us how we can improve this article

close
Dummy