Top
You are looking at an outdated 7.13.1 version of this document. Switch to the 7.14.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.

Try it:

get

Getter for the current value from data by path specified.

Params:

Name Type Description
field string Field in data row.

Returns:

* - The current field value.

Try it:

getChart

Getter for the chart point belongs to.

Returns:

anychart.core.SeparateChart - The chart.

Try it:

getIndex

Getter for the point linear index.

Returns:

number - Index of point.

Try it:

hovered

Getter for the current hover point state.

Returns:

boolean - The current hover state.

Try it:

Setter for the hover point state.

Params:

Name Type Description
value boolean Hover state to set.

Returns:

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

Try it:

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:

Name Type Description
value boolean Select 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:

Name Type Description
field string Field.
value * Value to set.

Returns:

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

Try it: