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

Box trace with boxpoints="all" and line_width=0 doesn't render marker in legend #7159

Open
jnumainville opened this issue Sep 17, 2024 · 0 comments · May be fixed by #7162
Open

Box trace with boxpoints="all" and line_width=0 doesn't render marker in legend #7159

jnumainville opened this issue Sep 17, 2024 · 0 comments · May be fixed by #7162
Labels
bug something broken P3 not needed for current cycle

Comments

@jnumainville
Copy link

When the width of a box trace is set to 0 and boxpoints is set to "all", it seems that the legend still attempts to render the box in the legend, which will never appear because the width is 0. It seems that in this case the marker should appear in the legend instead, as is already the case when the line alpha is 0.

I'd be happy to work on this as well.

import plotly.express as px

df = px.data.tips()

fig = px.strip(df, x="total_bill", y="day", color="time")
new_fig = fig.update_traces(line={"color": None, "width": 0})
new_fig.show()

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 not needed for current cycle
Projects
None yet
2 participants