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

class anychart.cartesian.series.Bubble Improve this Doc

Methods Overview

Miscellaneous
displayNegative()Getter for current negative value option.
hoverNegativeFill()Setter for series color by one value.
hoverNegativeStroke()Setter for stroke settings.
maximumSize()Getter for current maximum bubble size.
minimumSize()Getter for current minimum bubble size.
negativeFill()Setter for series color by one value.
negativeStroke()Setter for stroke settings.

Methods Description

displayNegative

Getter for current negative value option.

Returns:

boolean - Display negaitve setting .
Setter for negative value option.
Note: Отрицательные значения обрабатываются по модулю, но выделяются заливкой другого цвета. См anychart.cartesian.series.Bubble#negativeFill, anychart.cartesian.series.Bubble#negativeStroke

Params:

Name Type Description
value boolean Whether to display negative value.

Returns:

anychart.cartesian.series.Bubble - anychart.cartesian.series.Bubble instance for method chaining.

Try it:

hoverNegativeFill

Getter for the current series negative values.

Returns:

anychart.graphics.vector.Fill - Current color.
Setter for series negative values fill by function.

Params:

Name Type Default Description
fillFunction function
function() {
 return this.sourceColor;
}
Function that looks like function(){ // this.sourceColor -is a color returned by color() getter. return fillValue; // type anychart.graphics.vector.Fill }.

Returns:

anychart.cartesian.series.Base - anychart.cartesian.series.Base instance for method chaining.
Setter for series negative values fill by one value.
Learn more about coloring at: https://docs.anychart.com/7.0.0/Reference_Articles/elements-fill
Note: color methid sets fill and stroke, which means it is not wise to pass image fill here - stroke doesn't support it.

Params:

Name Type Description
fillOrColorOrKeys anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null Color or gradient.
opacityOrAngleOrCx number Opacity, or gradient angle, or CenterX for radial gradient.
modeOrCy number | boolean | anychart.graphics.math.Rect | Object Fill mode or CenterY for radial gradient.
opacityOrMode number | anychart.graphics.math.Rect | Object | null Opacity or fill mode.
opacity number Opacity (value from 0 to 1).
fx number The focus-point x-coordinate.
fy number The focus-point y-coordinate.

Returns:

anychart.cartesian.series.Base - anychart.cartesian.series.Base instance for method chaining.

hoverNegativeStroke

Getter for current stroke settings.

Returns:

anychart.graphics.vector.Stroke function - Current stroke settings.
Setter for stroke settings. Stroke settings are described at: https://docs.anychart.com/7.0.0/Elements_Fill

Params:

Name Type Default Description
strokeOrFill anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings or fill settings.
thickness number
1
Stroke thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.cartesian.series.Bubble - anychart.cartesian.series.Bubble instance for method chaining.

maximumSize

Getter for current maximum bubble size.

Returns:

string number - Maximum size of the bubble.
Setter for maximum bubble size.
See example at anychart.cartesian.series.Bubble#minimumSize.

Params:

Name Type Default Description
value string | number
'95%'
Maximum size of the bubble.

Returns:

anychart.cartesian.series.Bubble - anychart.cartesian.series.Bubble instance for method chaining.

minimumSize

Getter for current minimum bubble size.

Returns:

string number - Minimum size of the bubble.
Setter for minimum bubble size.

Params:

Name Type Default Description
value string | number
'10%'
Minimum size of the bubble.

Returns:

anychart.cartesian.series.Bubble - anychart.cartesian.series.Bubble instance for method chaining.

Try it:

negativeFill

Getter for the current series negative values.

Returns:

anychart.graphics.vector.Fill - Current color.
Setter for series negative values fill by function.

Params:

Name Type Default Description
fillFunction function
function() {
 return this.sourceColor;
}
Function that looks like function(){ // this.sourceColor -is a color returned by color() getter. return fillValue; // type anychart.graphics.vector.Fill }.

Returns:

anychart.cartesian.series.Base - anychart.cartesian.series.Base instance for method chaining.
Setter for series negative values fill by one value.
Learn more about coloring at: https://docs.anychart.com/7.0.0/Reference_Articles/elements-fill
Note: color methid sets fill and stroke, which means it is not wise to pass image fill here - stroke doesn't support it.

Params:

Name Type Description
fillOrColorOrKeys anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null Color or gradient.
opacityOrAngleOrCx number Opacity, or gradient angle, or CenterX for radial gradient.
modeOrCy number | boolean | anychart.graphics.math.Rect | Object Fill mode or CenterY for radial gradient.
opacityOrMode number | anychart.graphics.math.Rect | Object | null Opacity or fill mode.
opacity number Opacity (value from 0 to 1).
fx number The focus-point x-coordinate.
fy number The focus-point y-coordinate.

Returns:

anychart.cartesian.series.Base - anychart.cartesian.series.Base instance for method chaining.

negativeStroke

Getter for current stroke settings.

Returns:

anychart.graphics.vector.Stroke function - Current stroke settings.
Setter for stroke settings. Stroke settings are described are: https://docs.anychart.com/7.0.0/Elements_Fill

Params:

Name Type Default Description
strokeOrFill anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings or fill settings.
thickness number
1
Stroke thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.cartesian.series.Bubble - anychart.cartesian.series.Bubble instance for method chaining.