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
type
set 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
x
position 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
y
position 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
RangeSelector
object 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
visible
Determines whether or not this range selector is visible.
buttons
x
Sets the x position (in normalized coordinates) of the range selector.
xAnchor
Sets the range selector’s horizontal position anchor.
y
Sets the y position (in normalized coordinates) of the range selector.
yAnchor
Sets the range selector’s vertical position anchor This anchor binds the
y
position to the top, middle or bottom of the range selector.font
Sets the font of the range selector button text.
backgroundColor
Sets the background color of the range selector buttons.
activeColor
Sets the background color of the active range selector button.
borderColor
Sets the color of the border enclosing the range selector.
borderWidth
Sets the width (in px) of the border enclosing the range selector.