AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.12.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

class anychart.core.TreeMapPoint Improve this Doc

Extends: anychart.core.Point

Class that wraps point of series or chart.

Methods Overview

Specific settings
getIndex()Getter for the point linear index.
Charts
getChart()Getter for the chart point belongs to.
Data
exists()Checks if the point exists.
get()Getter for the current value from data by path specified.
getNode()Returns a node.
set()Setter for the value to the data by path.
Point Elements
hovered()Hover point state.
selected()Select point state.

Methods Description

exists

Checks if the point exists.

Returns:

boolean - Whether point exists in data set or not.

get

Getter for the current value from data by path specified.

Params:

NameTypeDescription
fieldstringField in data row.

Returns:

* - The current field value.

getChart

Getter for the chart point belongs to.

Returns:

anychart.core.SeparateChart - The chart.

getIndex

Getter for the point linear index.

Returns:

number - Index of point.

hovered

Getter for the current hover point state.

Returns:

boolean - The current hover state.
Setter for the hover point state.

Params:

NameTypeDescription
valuebooleanHover state to set.

Returns:

anychart.core.TreeMapPoint - Self instance for method chaining.

selected

Getter for the current select point state.

Returns:

boolean - Select state.
See listing
var selectState = point.selected();
Setter for the select point state.

Params:

NameTypeDescription
valuebooleanSelect state to set.

Returns:

anychart.core.TreeMapPoint - Self instance for method chaining.
See listing
point.selected(true);

set

Setter for the value to the data by path.

Params:

NameTypeDescription
fieldstringField.
value*Value to set.

Returns:

anychart.core.TreeMapPoint - Self instance for method chaining.