Skip to content

make hover box caret/triangle optional #7278

@celia-lm

Description

@celia-lm

Current behavior:

Image

Desired behavior:

Code like:

fig.update_traces(hoverbox_style={'caret':False})

Image

Workaround

css to remove caret (if using dcc.Graph+dcc.Tooltip in dash)

.hover[class*="jsx-"]::before, .hover[class*="jsx-"]::after {
    border-color: transparent !important;
}

In plotly.js the shape is defined by using a path object, so we would need to modify its d value: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclecscustomer successfeaturesomething new

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions