AnyChart
API Reference
Still have questions?
Contact support
Top

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.

get

Getter for the value from data by path specified.

Params:

NameTypeDescription
fieldstringField in data row.

Returns:

* - Return the 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.

getStat

Getter for the statistics value by key.

Params:

NameTypeDescription
keyanychart.enums.Statistics | stringKey.

Returns:

* - Statistics value.

hovered

Getter for the hover point state.

Returns:

boolean - Hover state.
Setter for the hover point state.

Params:

NameTypeDescription
enabledbooleanHover state to set.

Returns:

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

selected

Getter for the 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.TreeChartPoint - 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.TreeChartPoint - Self instance for method chaining.