\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

A PHP class representing the majorTicks setting of SparklineCategoryAxisItem.

Methods

color

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

Returns

\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

Parameters

$value string

Example

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

Parameters

$value float

Example

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

skip

The skip of the category axis major ticks.

Returns

\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

Parameters

$value float

Example

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

step

The step of the category axis major ticks.

Returns

\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

Parameters

$value float

Example

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

visible

The visibility of the major ticks.

Returns

\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

Parameters

$value boolean

Example

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

width

The width of the major ticks in pixels.

Returns

\Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks

Parameters

$value float

Example

<?php
$majorTicks = new \Kendo\Dataviz\UI\SparklineCategoryAxisItemMajorTicks();
$majorTicks->width(1);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy