class anychart.core.TreeChartPoint 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 value from data by path specified. | 
| getNode() | Returns a node. | 
| getStat() | Getter for the statistics value by key. | 
| 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 value from data by path specified.
Params:
| Name | Type | Description | 
|---|---|---|
| field | string | Field in data row. | 
Returns:
* - Return the field value.Try it:
getChart
getIndex
getNode
Returns a node.
Try it:
getStat
Getter for the statistics value by key.
Params:
| Name | Type | Description | 
|---|---|---|
| key | anychart.enums.Statistics | string | Key. | 
Returns:
* - Statistics value.Try it:
hovered
Setter for the hover point state.
Params:
| Name | Type | Description | 
|---|---|---|
| enabled | boolean | Hover state to set. | 
Returns:
anychart.core.TreeChartPoint - Self instance for method chaining.Try it:
selected
Getter for the 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.TreeChartPoint - 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.TreeChartPoint - Self instance for method chaining.Try it:
