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

class anychart.core.resource.resourceList.SettingsWithMargin Improve this Doc

Settings with margin.

Methods Overview

Size and Position
margin()Margin settings.

Methods Description

margin

Getter for the margin.

Returns:

anychart.core.utils.Margin - The margin.

Try it:

Setter for the margin using a single value.

Params:

Name Type Description
value Array.<(number|string)> | Object Value to set.

Returns:

anychart.core.resource.resourceList.SettingsWithMargin - Self instance for method chaining.

Try it:

Setter for the callout margin using several values.

Params:

Name Type Description
value1 string | number Top or top-bottom space.
value2 string | number Right or right-left space.
value3 string | number Bottom space.
value4 string | number Left space.

Returns:

anychart.core.resource.resourceList.SettingsWithMargin - Self instance for method chaining.

Try it: