RangeSelector
public struct RangeSelector : Encodable
Undocumented
-
Determines whether or not this range selector is visible.
Note that range selectors are only available for x axes of
typeset to or auto-typed to date.Declaration
Swift
public var visible: Bool? -
Sets the specifications for each buttons.
By default, a range selector comes with no buttons.
See moreDeclaration
Swift
public struct Button : Encodable -
Undocumented
Declaration
Swift
public var buttons: [Button]? -
Sets the x position (in normalized coordinates) of the range selector.
Declaration
Swift
public var x: Double? -
Sets the range selector’s horizontal position anchor.
This anchor binds the
xposition to the left, center or right of the range selector.Declaration
Swift
public var xAnchor: XAutoAnchor? -
Sets the y position (in normalized coordinates) of the range selector.
Declaration
Swift
public var y: Double? -
Sets the range selector’s vertical position anchor This anchor binds the
yposition to the top, middle or bottom of the range selector.Declaration
Swift
public var yAnchor: YAutoAnchor? -
Sets the font of the range selector button text.
Declaration
Swift
public var font: Font? -
Sets the background color of the range selector buttons.
Declaration
Swift
public var backgroundColor: Color? -
Sets the background color of the active range selector button.
Declaration
Swift
public var activeColor: Color? -
Sets the color of the border enclosing the range selector.
Declaration
Swift
public var borderColor: Color? -
Sets the width (in px) of the border enclosing the range selector.
Declaration
Swift
public var borderWidth: Double? -
Creates
RangeSelectorobject with specified properties.Declaration
Swift
public init(visible: Bool? = nil, buttons: [Button]? = nil, x: Double? = nil, xAnchor: XAutoAnchor? = nil, y: Double? = nil, yAnchor: YAutoAnchor? = nil, font: Font? = nil, backgroundColor: Color? = nil, activeColor: Color? = nil, borderColor: Color? = nil, borderWidth: Double? = nil)Parameters
visibleDetermines whether or not this range selector is visible.
buttonsxSets the x position (in normalized coordinates) of the range selector.
xAnchorSets the range selector’s horizontal position anchor.
ySets the y position (in normalized coordinates) of the range selector.
yAnchorSets the range selector’s vertical position anchor This anchor binds the
yposition to the top, middle or bottom of the range selector.fontSets the font of the range selector button text.
backgroundColorSets the background color of the range selector buttons.
activeColorSets the background color of the active range selector button.
borderColorSets the color of the border enclosing the range selector.
borderWidthSets the width (in px) of the border enclosing the range selector.
View on GitHub
Install in Dash
RangeSelector Structure Reference