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

make hover box caret/triangle optional #7278

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

make hover box caret/triangle optional #7278

celia-lm opened this issue Nov 21, 2024 · 0 comments
Labels
cs customer success feature something new P2 considered for next cycle

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

@celia-lm celia-lm added the feature something new label Nov 21, 2024
@gvwilson gvwilson changed the title Feature Request - make hover box caret/triangle optional make hover box caret/triangle optional Nov 26, 2024
@gvwilson gvwilson added P2 considered for next cycle cs customer success labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cs customer success feature something new P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants