Top
You are looking at an outdated 7.0.0 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.elements.TooltipItem Improve this Doc

Methods Overview

Miscellaneous
anchor()Gets or sets Tooltip item anchor settings.
background()Tooltip item background.
content()Tooltip item content.
draw()Draw tooltip item.
hideDelay()Sets/gets delay in milliseconds before tooltip item becomes invisible on visible(false) call.
offsetX()Offset by X of tooltip item position.
offsetY()Y offset of tooltip item position.
padding()Tooltip item padding.
separator()Tooltip item title separator.
title()Tooltip item title.
visible()Change tooltip item visibility settings.
x()X coordinate of tooltip item position.
y()Y coordinate of tooltip item position.

Methods Description

anchor

Gets or sets Tooltip item anchor settings.

Params:

Name Type Description
value anychart.utils.NinePositions | string Tooltip item anchor settings.

Returns:

anychart.elements.TooltipItem anychart.utils.NinePositions - Tooltip item anchor settings or itself for method chaining.

background

Tooltip item background.

Params:

Name Type Description
value anychart.elements.Background | Object | string | null Tooltip item background settings.

Returns:

anychart.elements.Background anychart.elements.TooltipItem - Background instance or itself for method chaining.

content

Tooltip item content.

Params:

Name Type Description
value anychart.elements.Label | Object | string | null Content settings.

Returns:

anychart.elements.Label anychart.elements.TooltipItem - Labels instance or itself for method chaining.

draw

Draw tooltip item.

Returns:

anychart.elements.TooltipItem - Return itself for method chaining.

hideDelay

Sets/gets delay in milliseconds before tooltip item becomes invisible on visible(false) call.

Params:

Name Type Description
value number Delay in milliseconds before tooltip item becomes invisible on visible(false) call.

Returns:

number anychart.elements.TooltipItem - delay in milliseconds before tooltip item becomes invisible on visible(false) call or itself for method chaining.

offsetX

Offset by X of tooltip item position.

Params:

Name Type Description
value number New value of X offset of tooltip item position.

Returns:

number anychart.elements.TooltipItem - X offset of tooltip item position of itself for method chaining.

offsetY

Y offset of tooltip item position.

Params:

Name Type Description
value number New value of Y offset of tooltip item position.

Returns:

number anychart.elements.TooltipItem - Y offset of tooltip item position of itself for method chaining.

padding

Tooltip item padding.

Params:

Name Type Description
value anychart.utils.Padding | Object | string | null Tooltip item padding settings.

Returns:

anychart.utils.Padding anychart.elements.TooltipItem - Padding instance or itself for method chaining.

separator

Tooltip item title separator.

Params:

Name Type Description
value anychart.elements.Separator | Object | string | null Separator settings.

Returns:

anychart.elements.Separator anychart.elements.TooltipItem - Separator instance or itself for method chaining.

title

Tooltip item title.

Params:

Name Type Description
value anychart.elements.Title | Object | string | null Tooltip settings.

Returns:

anychart.elements.Title anychart.elements.TooltipItem - Title instance or itself for method chaining.

visible

Change tooltip item visibility settings.

Params:

Name Type Description
value boolean Tooltip item visibility settings.

Returns:

boolean anychart.elements.TooltipItem - Tooltip item visibility settings or itself for method chaining.

x

X coordinate of tooltip item position.

Params:

Name Type Description
value number New value of X coordinate of tooltip item position.

Returns:

number anychart.elements.TooltipItem - X coordinate of tooltip item position of itself for method chaining.

y

Y coordinate of tooltip item position.

Params:

Name Type Description
value number New value of Y coordinate of tooltip item position.

Returns:

number anychart.elements.TooltipItem - Y coordinate of tooltip item position of itself for method chaining.