AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.1.1 version of this document. Switch to the 8.4.0 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:

NameTypeDescription
valueanychart.enums.Anchor | stringTooltip item anchor settings.

Returns:

anychart.elements.TooltipItem | anychart.enums.Anchor - Tooltip item anchor settings or itself for method chaining.

background

Tooltip item background.

Params:

NameTypeDescription
valueanychart.elements.Background | Object | string | nullTooltip item background settings.

Returns:

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

content

Tooltip item content.

Params:

NameTypeDescription
valueanychart.elements.Label | Object | string | nullContent 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:

NameTypeDescription
valuenumberDelay 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:

NameTypeDescription
valuenumberNew 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:

NameTypeDescription
valuenumberNew 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:

NameTypeDescription
valueanychart.utils.Padding | Object | string | nullTooltip item padding settings.

Returns:

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

separator

Tooltip item title separator.

Params:

NameTypeDescription
valueanychart.elements.Separator | Object | string | nullSeparator settings.

Returns:

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

title

Tooltip item title.

Params:

NameTypeDescription
valueanychart.elements.Title | Object | string | nullTooltip settings.

Returns:

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

visible

Change tooltip item visibility settings.

Params:

NameTypeDescription
valuebooleanTooltip 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:

NameTypeDescription
valuenumberNew 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:

NameTypeDescription
valuenumberNew value of Y coordinate of tooltip item position.

Returns:

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