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
getIndex
getNode
Returns a node.
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: