class anychart.core.MapPoint Improve this Doc
Extends: anychart.core.Point
Series-based chart point.
Methods Overview
Specific settings | |
getIndex() | Getter for the point index in chart or series. |
Charts | |
getChart() | Getter for the current chart which current point belongs to. |
getCurrentChart() | Returns current visible map on stage. |
getParentChart() | Returns point parent map chart. |
Data | |
exists() | Checks the existence of the current point (by index) in dataset. |
get() | Fetches a field value from point data row by its name. |
getId() | Returns point geo id. |
getProperties() | Returns point geo properties. |
set() | Sets the field of the point data row to the specified value. |
Point Elements | |
hovered() | Hover point state. |
selected() | Select point state. |
Methods Description
exists
Checks the existence of the current point (by index) in dataset.
Detailed description
If you request an index that bigger than exist in an array, you will get empty points.
If you set a value for this point, then this value will be added to the end of array dataset.
Returns:
boolean - Whether point exists in dataset or not.Try it:
get
Fetches a field value from point data row by its name.
Params:
Name | Type | Description |
---|---|---|
field | string | Field in data row. |
Returns:
* - The current field value.Try it:
getChart
Getter for the current chart which current point belongs to.
Returns:
anychart.core.SeparateChart - The current chart.Try it:
getCurrentChart
getId
getIndex
getParentChart
getProperties
hovered
Getter for the current hover point state.
Returns:
boolean - The current hover state.Try it:
Setter for hover point state.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | boolean | false | Hover state to set. |
Returns:
anychart.core.MapPoint - Self instance for method chaining.Try it:
selected
Getter for the current select point state.
Returns:
boolean - Select point state. See listing
var point = chart.getPoint(1); var selectState = point.selected();
Setter for select point state.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | boolean | false | Select state to set. |
Returns:
anychart.core.MapPoint - Self instance for method chaining.Try it:
set
Sets the field of the point data row to the specified value.
Params:
Name | Type | Description |
---|---|---|
field | string | Field. |
value | * | Value to set. |
Returns:
anychart.core.MapPoint - Self instance for method chaining.Try it: