\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

A PHP class representing the majorTicks setting of SparklineValueAxisItem.

Methods

color

The color of the value axis major ticks lines. Accepts a valid CSS color string, including hex and rgb.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value string

Example

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

size

The axis major tick size. This is the length of the line in pixels that is drawn to indicate the tick on the chart.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value float

Example

<?php
$majorTicks = new \Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks();
$majorTicks->size(1);
?>

skip

The skip of the value axis major ticks.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value float

Example

<?php
$majorTicks = new \Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks();
$majorTicks->skip(1);
?>

step

The step of the value axis major ticks.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value float

Example

<?php
$majorTicks = new \Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks();
$majorTicks->step(1);
?>

visible

The visibility of the major ticks.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value boolean

Example

<?php
$majorTicks = new \Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks();
$majorTicks->visible(true);
?>

width

The width of the major ticks in pixels.

Returns

\Kendo\Dataviz\UI\SparklineValueAxisItemMajorTicks

Parameters

$value float

Example

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