Margin
public struct Margin : Encodable
Undocumented
-
Sets the left margin (in px).
Declaration
Swift
public var l: Double? -
Sets the right margin (in px).
Declaration
Swift
public var r: Double? -
Sets the top margin (in px).
Declaration
Swift
public var t: Double? -
Sets the bottom margin (in px).
Declaration
Swift
public var b: Double? -
Sets the amount of padding (in px) between the plotting area and the axis lines
Declaration
Swift
public var padding: Double? -
Turns on/off margin expansion computations.
Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults.
Declaration
Swift
public var autoExpand: Bool? -
Creates
Marginobject with specified properties.Declaration
Swift
public init(l: Double? = nil, r: Double? = nil, t: Double? = nil, b: Double? = nil, padding: Double? = nil, autoExpand: Bool? = nil)Parameters
lSets the left margin (in px).
rSets the right margin (in px).
tSets the top margin (in px).
bSets the bottom margin (in px).
paddingSets the amount of padding (in px) between the plotting area and the axis lines
autoExpandTurns on/off margin expansion computations.
View on GitHub
Install in Dash
Margin Structure Reference