ModeBar
public struct ModeBar : Encodable
Undocumented
-
Sets the orientation of the modebar.
Declaration
Swift
public var orientation: Orientation?
-
Sets the background color of the modebar.
Declaration
Swift
public var backgroundColor: Color?
-
Sets the color of the icons in the modebar.
Declaration
Swift
public var color: Color?
-
Sets the color of the active or hovered on icons in the modebar.
Declaration
Swift
public var activeColor: Color?
-
Controls persistence of user-driven changes related to the modebar, including
hovermode
,dragmode
, andshowspikes
at both the root level and inside subplots.Defaults to
layout.uirevision
.Declaration
Swift
public var uiRevision: Anything?
-
Creates
ModeBar
object with specified properties.Declaration
Swift
public init(orientation: Orientation? = nil, backgroundColor: Color? = nil, color: Color? = nil, activeColor: Color? = nil, uiRevision: Anything? = nil)
Parameters
orientation
Sets the orientation of the modebar.
backgroundColor
Sets the background color of the modebar.
color
Sets the color of the icons in the modebar.
activeColor
Sets the color of the active or hovered on icons in the modebar.
uiRevision
Controls persistence of user-driven changes related to the modebar, including
hovermode
,dragmode
, andshowspikes
at both the root level and inside subplots.