\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

A PHP class representing the dateFormats setting of ChartXAxisItemLabels.

Methods

days

The format used when xAxis.baseUnit is set to "days".

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

Parameters

$value string

Example

<?php
$dateFormats = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats();
$dateFormats->days('value');
?>

hours

The format used when xAxis.baseUnit is set to "hours".

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

Parameters

$value string

Example

<?php
$dateFormats = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats();
$dateFormats->hours('value');
?>

months

The format used when xAxis.baseUnit is set to "months".

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

Parameters

$value string

Example

<?php
$dateFormats = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats();
$dateFormats->months('value');
?>

weeks

The format used when xAxis.baseUnit is set to "weeks".

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

Parameters

$value string

Example

<?php
$dateFormats = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats();
$dateFormats->weeks('value');
?>

years

The format used when xAxis.baseUnit is set to "years".

Returns

\Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats

Parameters

$value string

Example

<?php
$dateFormats = new \Kendo\Dataviz\UI\ChartXAxisItemLabelsDateFormats();
$dateFormats->years('value');
?>
In this article
Not finding the help you need?