\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair
A PHP class representing the crosshair setting of StockChartNavigatorCategoryAxis.
Methods
color
The color of the crosshair. Accepts a valid CSS color string, including hex and rgb.
Returns
\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair
Parameters
$value string
Example
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$crosshair->color('value');
?>
opacity
The opacity of the crosshair. By default the crosshair is opaque.
Returns
\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair
Parameters
$value float
Example
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$crosshair->opacity(1);
?>
tooltip
The crosshair tooltip options.
Returns
\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair
Parameters
$value \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip|array
Example - using \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$background = 'value';
$tooltip->background($background);
$crosshair->tooltip($tooltip);
?>
Example - using array
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$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\StockChartNavigatorCategoryAxisCrosshair
Parameters
$value boolean
Example
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$crosshair->visible(true);
?>
width
The width of the crosshair in pixels.
Returns
\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair
Parameters
$value float
Example
<?php
$crosshair = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshair();
$crosshair->width(1);
?>