AnyChart
API Reference
Still have questions?
Contact support
Top

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.
Setter for the margin using a single value.

Params:

NameTypeDescription
marginArray.<(number|string)> | ObjectMargin to set.

Returns:

anychart.core.resource.resourceList.SettingsWithMargin - Self instance for method chaining.
Setter for the callout margin using several values.

Params:

NameTypeDescription
value1string | numberTop or top-bottom space.
value2string | numberRight or right-left space.
value3string | numberBottom space.
value4string | numberLeft space.

Returns:

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