HoverLabel
public struct HoverLabel : Encodable
Undocumented
-
Sets the background color of the hover labels for this trace
Declaration
Swift
public var backgroundColor: Coloring? -
Sets the border color of the hover labels for this trace.
Declaration
Swift
public var borderColor: Coloring? -
Sets the font used in hover labels.
Declaration
Swift
public var font: VariableFont? -
Sets the horizontal alignment of the text content within hover label box.
Has an effect only if the hover label text spans more two or more lines
Declaration
Swift
public var align: AutoAlign? -
Sets the default length (in number of characters) of the trace name in the hover labels for all traces.
-1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer
3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to
namelength - 3characters and add an ellipsis.Declaration
Swift
public var nameLength: Data<Int>? -
Show hover information (open, close, high, low) in separate labels.
Declaration
Swift
public var split: Bool? -
Creates
HoverLabelobject with specified properties.Declaration
Swift
public init(backgroundColor: Coloring? = nil, borderColor: Coloring? = nil, font: VariableFont? = nil, align: AutoAlign? = nil, nameLength: Data<Int>? = nil, split: Bool? = nil)Parameters
backgroundColorSets the background color of the hover labels for this trace
borderColorSets the border color of the hover labels for this trace.
fontSets the font used in hover labels.
alignSets the horizontal alignment of the text content within hover label box.
nameLengthSets the default length (in number of characters) of the trace name in the hover labels for all traces.
splitShow hover information (open, close, high, low) in separate labels.
View on GitHub
Install in Dash
HoverLabel Structure Reference