AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

class anychart.core.utils.UnboundRegionsSettings Improve this Doc

Class for using in maps. Class is settings for regions that isn't linked to any series.

Methods Overview

Coloring
fill()Fill settings.
stroke()Stroke settings.
Interactivity
enabled()Element state (enabled or disabled).

Methods Description

enabled

Getter for the current element enabled state.

Returns:

boolean - The current element state.
Setter for the element enabled state.

Params:

NameTypeDefaultDescription
valueboolean
true
Value to set.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.

fill

Getter for the current fill color.

Returns:

anychart.graphics.vector.Fill - Current fill color.
Sets fill settings using an array or a string. Learn more about coloring.

Params:

NameTypeDefaultDescription
valueanychart.graphics.vector.Fill
"#F7F7F7"
Color as an array or a string.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.
Linear gradient fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Gradient keys.
anglenumberGradient angle.
modeboolean | anychart.graphics.vector.Rect | ObjectGradient mode.
opacitynumberGradient opacity.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Color-stop gradient keys.
cxnumberX ratio of center radial gradient.
cynumberY ratio of center radial gradient.
modeanychart.graphics.math.RectIf defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberOpacity of the gradient.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.

stroke

Gets the current stroke for unbounded regions.

Returns:

anychart.graphics.vector.Stroke - The current stroke.
Sets the stroke for unbounded regions.

Params:

NameTypeDefaultDescription
strokeanychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#B9B9B9"
Stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line joint style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.utils.UnboundRegionsSettings - Self instance for method chaining.