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

class anychart.core.map.series.Bubble Improve this Doc

Extends: anychart.core.map.series.DiscreteBase

Bubble series.

Methods Overview

Specific settings
displayNegative()Negative option.
Coloring
fill()Fill settings.
hatchFill()Hatch fill settings.
hoverFill()Fill settings in hover mode.
hoverHatchFill()Hatch fill settings in hover mode.
hoverNegativeFill()Fill settings.
hoverNegativeHatchFill()Negative hatch fill settings in hover mode.
hoverNegativeStroke()Negative stroke settings in hover mode.
hoverStroke()Stroke settings in hover mode.
negativeFill()Fill settings.
negativeHatchFill()Negative hatch fill settings.
negativeStroke()Negative stroke settings.
selectFill()Fill settings in selected mode.
selectHatchFill()Hatch fill settings in selected mode.
selectNegativeFill()Fill settings.
selectNegativeHatchFill()Negative hatch fill settings in selected mode.
selectNegativeStroke()Negative stroke settings in selected mode.
selectStroke()Stroke settings in selected mode.
stroke()Stroke settings.

Methods Description

displayNegative

Getter for the current negative value option.

Returns:

boolean - Display negative settings.

Try it:

Setter for the negative value option.

Params:

Name Type Default Description
value boolean
false
Whether to display negative value.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

fill

Getter for current series fill color.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series fill. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hatchFill

Getter fot the current hatch fill in hover mode.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the hatch fill.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverFill

Getter for current series fill color in hover mode.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series fill settings in hover mode using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series fill color in hover mode with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series fill in hover mode. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverHatchFill

Getter fot the current hatch fill in hover mode.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the hatch fill in hover mode.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverNegativeFill

Getter for current series negative fill color in hover mode.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series negative fill settings in hover mode using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series negative fill color in hover mode with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverNegativeHatchFill

Getter fot the current negative hatch fill in hover mode.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the negative hatch fill in hover mode.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverNegativeStroke

Getter for current negative stroke settings in hover mode.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series negative stroke in hover mode by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series negative stroke settings in hover mode. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it:

hoverStroke

Getter for current stroke settings in hover mode.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series stroke in hover mode by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series stroke settings in hover mode. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it:

negativeFill

Getter for current series negative fill color.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series negative fill settings using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series negative fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series negative fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series negative fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series negative fill. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

negativeHatchFill

Getter fot the current negative hatch fill.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the negative hatch fill.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

negativeStroke

Getter for current negative stroke settings.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series negative stroke by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series negative stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectFill

Getter for current series fill color in selected mode.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series fill settings in selected mode using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series fill color in selected mode with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series fill in selected mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series fill in selected mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series fill in selected mode. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectHatchFill

Getter fot the current hatch fill in selected mode.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the hatch fill in selected mode.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectNegativeFill

Getter for current series negative fill color in hover mode.

Returns:

anychart.graphics.vector.Fill - Current fill color.

Try it:

Sets series negative fill settings in hover mode using an array or a string. Learn more about coloring.

Params:

Name Type Description
value anychart.graphics.vector.Fill Color as an array or a string.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.
Series negative fill color in hover mode with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Linear gradient series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Radial series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Image series negative fill in hover mode. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectNegativeHatchFill

Getter fot the current negative hatch fill in hover mode.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function boolean - The current hatch fill.

Try it:

Setter for the negative hatch fill in selected mode.

Params:

Name Type Default Description
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean
false
PatternFill or HatchFill instance or type or state of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectNegativeStroke

Getter for current negative stroke settings in selected mode.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series negative stroke in selected mode by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series negative stroke settings in selected mode. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it:

selectStroke

Getter for current stroke settings in selected mode.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series stroke in selected mode. by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series stroke settings in selected mode. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it:

stroke

Getter for current stroke settings.

Returns:

anychart.core.map.series.Bubble - Current stroke settings.

Try it:

Setter for series stroke by function.

Params:

Name Type Default Description
strokeFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.map.series.Bubble - Self instance for method chaining.

Try it:

Setter for series stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Stroke settings.
thickness number
1
Line 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.core.map.series.Bubble - Self instance for method chaining.

Try it: