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

class anychart.elements.Separator Improve this Doc

Extends: anychart.VisualBase

Class for a separator element.

Methods Overview

Miscellaneous
draw()Draw separator.
drawer()Getter for function drawing separator.
fill()Separator fill.
getRemainingBounds()
height()Getter for separator height.
margin()Margin of the separator
orientation()Orientation of the separator.
parentBounds()Gets/Sets bounds to calculate position.
stroke()Separator stroke.
width()Getter for separator width.

Methods Description

draw

Draw separator.

Returns:

anychart.elements.Separator - anychart.elements.Separator instance for method chaining.

drawer

Getter for function drawing separator.

Returns:

function - Drawer function.
Setter for function drawing separator.

Params:

NameTypeDescription
valuefunctionDrawer function.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.

fill

Separator fill.

Params:

NameTypeDescription
fillOrColorOrKeysanychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null.
opacityOrAngleOrCxnumber.
modeOrCynumber | boolean | anychart.graphics.math.Rect | Object.
opacityOrModenumber | anychart.graphics.math.Rect | Object | null.
opacitynumber.
fxnumber.
fynumber.

getRemainingBounds

Returns:

anychart.math.Rect - Parent bounds without the space used by the title.

height

Getter for separator height.

Returns:

number | string | null - Current height.
Setter for separator height.

Params:

NameTypeDescription
valuenumber | string | nullValue to set.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.

margin

Margin of the separator

Params:

NameTypeDescription
spaceOrTopOrTopAndBottomstring | number | anychart.utils.Space.
rightOrRightAndLeftstring | number.
bottomstring | number.
leftstring | number.

orientation

Orientation of the separator.

Params:

NameTypeDescription
valueanychart.enums.Orientation | string.

parentBounds

Gets/Sets bounds to calculate position.

Params:

NameTypeDescription
valueanychart.math.Rect.

width

Getter for separator width.

Returns:

number | string | null - Current width.
Setter for separator width.

Params:

NameTypeDescription
valuenumber | string | nullValue to set.

Returns:

anychart.elements.Separator - An instance of the anychart.elements.Separator class for method chaining.