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 - 3
characters 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
HoverLabel
object 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
backgroundColor
Sets the background color of the hover labels for this trace
borderColor
Sets the border color of the hover labels for this trace.
font
Sets the font used in hover labels.
align
Sets the horizontal alignment of the text content within hover label box.
nameLength
Sets the default length (in number of characters) of the trace name in the hover labels for all traces.
split
Show hover information (open, close, high, low) in separate labels.