Top
You are looking at an outdated 7.9.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.BubblePoint Improve this Doc

Extends: anychart.core.SeriesPoint

Point representing bubble points that belongs to cartesian or scatter chart.

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.
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.
getStackValue()Returns stack value of the point.
getStackZero()Returns stack zero of the point.
set()Sets the field of the point data row to the specified value.
Point Elements
hovered()Hover point state.
selected()Select point state.
Series
getSeries()Getter for series which current point belongs to.
Size and Position
getPixelRadius()Getter for the current bubble point radius.

Methods Description

exists

Checks the existence of the current point (by index) in 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:

getIndex

Getter for the point index in chart or series.

Returns:

number - Index of point.

Try it:

getPixelRadius

Getter for the current bubble point radius.

Returns:

number - Radius in pixels.

Try it:

getSeries

Getter for series which current point belongs to.

Returns:

anychart.core.SeriesBase - Series.

Try it:

getStackValue

Returns stack value of the point. Note: Works only after chart.draw() is called.

Returns:

number - The current stack value of the point.

Try it:

getStackZero

Returns stack zero of the point. Note: Works only after chart.draw() is called.

Returns:

number - The current stack zero of the point

Try it:

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.SeriesPoint - Self instance for method chaining.

Try it:

selected

Getter for the current select series point state.

Returns:

boolean - Select point state.
See listing
var point = series.getPoint(1);
var selectState = point.selected();
Setter for select series point state.

Params:

Name Type Default Description
value boolean
false
Select state to set.

Returns:

anychart.core.SeriesPoint - 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.Point - Self instance for method chaining.

Try it: