interface HoverLabel {
    align: "auto" | "left" | "right";
    bgcolor: string;
    bordercolor: string;
    font: Partial<Font>;
    namelength: number;
}

Hierarchy (view full)

Properties

align: "auto" | "left" | "right"

Sets the horizontal alignment of the text content within hover label box.

"auto"
bgcolor: string

Sets the background color of all hover labels on graph.

bordercolor: string

Sets the border color of all hover labels on graph.

font: Partial<Font>

Sets the default hover label font used by all traces on the graph.

namelength: number

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.

15