\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

A PHP class representing the majorGridLines setting of ChartXAxisItem.

Methods

color

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

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value string

Example

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

dashType

The dash type of the line.The following dash types are supported: "dash" - a line consisting of dashes; "dashDot" - a line consisting of a repeating pattern of dash-dot; "dot" - a line consisting of dots; "longDash" - a line consisting of a repeating pattern of long-dash; "longDashDot" - a line consisting of a repeating pattern of long-dash-dot; "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot or "solid" - a solid line.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value string

Example

<?php
$majorGridLines = new \Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines();
$majorGridLines->dashType('value');
?>

skip

The skip of the x axis major grid lines.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value float

Example

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

step

The step of the x axis major grid lines.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value float

Example

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

visible

If set to false the chart will not display the x major grid lines. By default the x major grid lines are visible.

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value boolean

Example

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

width

The width of the line in pixels. Also affects the major and minor ticks, but not the grid lines. #### Example - set the scatter chart x major grid lines width

Returns

\Kendo\Dataviz\UI\ChartXAxisItemMajorGridLines

Parameters

$value float

Example

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

Give article feedback

Tell us how we can improve this article

close
Dummy