Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - make hover box caret/triangle optional #7278

Open
celia-lm opened this issue Nov 21, 2024 · 0 comments
Open

Feature Request - make hover box caret/triangle optional #7278

celia-lm opened this issue Nov 21, 2024 · 0 comments
Labels
feature something new

Comments

@celia-lm
Copy link

celia-lm commented Nov 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

1 participant