\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

A PHP class representing the crosshair setting of ChartCategoryAxisItem.

Methods

color

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

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

Parameters

$value string

Example

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

dashType

The dash type of the crosshair.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\ChartCategoryAxisItemCrosshair

Parameters

$value string

Example

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

opacity

The opacity of the crosshair. By default the crosshair is opaque.

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

Parameters

$value float

Example

<?php
$crosshair = new \Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair();
$crosshair->opacity(1);
?>

tooltip

The crosshair tooltip options.

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

Parameters

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

Example - using \Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshairTooltip

<?php
$crosshair = new \Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair();
$tooltip = new \Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshairTooltip();
$background = 'value';
$tooltip->background($background);
$crosshair->tooltip($tooltip);
?>

Example - using array

<?php
$crosshair = new \Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair();
$background = 'value';
$crosshair->tooltip(array('background' => $background));
?>

visible

If set to true the chart will display the category axis crosshair. By default the category axis crosshair is not visible.

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

Parameters

$value boolean

Example

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

width

The width of the crosshair in pixels.

Returns

\Kendo\Dataviz\UI\ChartCategoryAxisItemCrosshair

Parameters

$value float

Example

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