\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

A PHP class representing the tooltip setting of StockChartNavigatorCategoryAxisCrosshair.

Methods

background

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

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value string

Example

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

border

The border options.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

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

Example - using \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltipBorder

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$border = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltipBorder();
$color = 'value';
$border->color($color);
$tooltip->border($border);
?>

Example - using array

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$color = 'value';
$tooltip->border(array('color' => $color));
?>

color

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

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value string

Example

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

font

The tooltip font.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value string

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$tooltip->font('value');
?>

format

The format used to display the tooltip. Uses kendo.format. Contains one placeholder ("{0}") which represents the category value.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value string

Example

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$tooltip->format('value');
?>

padding

The padding of the crosshair tooltip. A numeric value will set all paddings.

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value float |\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltipPadding |array

Example - using float

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$tooltip->padding(1);
?>

Example - using \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltipPadding

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$padding = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltipPadding();
$bottom = 1;
$padding->bottom($bottom);
$tooltip->padding($padding);
?>

Example - using array

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$bottom = 1;
$tooltip->padding(array('bottom' => $bottom));
?>

template

The template which renders the tooltip.The fields which can be used in the template are:

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$tooltip->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$tooltip = new \Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip();
$tooltip->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

visible

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

Returns

\Kendo\Dataviz\UI\StockChartNavigatorCategoryAxisCrosshairTooltip

Parameters

$value boolean

Example

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