AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.wordtree.Connectors Improve this Doc

Extends: anychart.core.Base

Connectors base settings.

Methods Overview

Coloring
stroke()Stroke settings.
Size and Position
curveFactor()Curve factor of the connectors.
length()Connectors length.
offset()Offset settings.

Methods Description

curveFactor

Getter for the curve factor of the connectors.

Returns:

number - The curve factor of the connectors.
Setter for the curve factor of the connectors.

Params:

NameTypeDefaultDescription
paddingnumber
0.5
The curve factor is set as a ratio from 0 to 1.

Returns:

anychart.core.wordtree.Connectors - Self instance for method chaining.

length

Getter for the connectors length.

Returns:

string - Connectors length.
Setter for the connectors length.
The length represents the horizontal distance between the points of connection.

Params:

NameTypeDefaultDescription
lengthnull | number | string
30
Connectors length to set.

Returns:

anychart.core.wordtree.Connectors - Self instance for method chaining.

offset

Getter for the connectors offset.

Returns:

number - Connectors offset.
Setter for the connectors offset.
The offset is the distance from the ends of the connector to the words.

Params:

NameTypeDefaultDescription
offsetnumber
5
Offset in pixel to set.

Returns:

anychart.core.wordtree.Connectors - Self instance for method chaining.

stroke

Getter for stroke settings.

Returns:

anychart.graphics.vector.Stroke - Stroke settings.
Setter for stroke settings. Learn more about stroke settings

Params:

NameTypeDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | nullStroke settings.
thicknessnumberLine thickness.
dashpatternstringControls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoinLine join style.
lineCapstring | anychart.graphics.vector.StrokeLineCapLine cap style.

Returns:

anychart.core.wordtree.Connectors - Self instance for method chaining.
Setter for stroke using an object.

Params:

NameTypeDescription
settingsObjectStroke settings from anychart.graphics.vector.Stroke.

Returns:

anychart.core.wordtree.Connectors - Self instance for method chaining.