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

Legend not fully displayed in SVG #4670

Open
alvanuffelen opened this issue Jul 17, 2024 · 0 comments
Open

Legend not fully displayed in SVG #4670

alvanuffelen opened this issue Jul 17, 2024 · 0 comments
Labels
bug something broken P3 not needed for current cycle

Comments

@alvanuffelen
Copy link

The longest text of the legend gets cut off when saved to SVG.

fig = go.Figure()
fig.add_trace(go.Scatter(
    x=[1, 2, 3, 4, 5],
    y=[1, 2, 3, 4, 5],
    name="ShortTitle"
))
fig.add_trace(go.Scatter(
    x=[1, 2, 3, 4, 5],
    y=[5, 4, 3, 2, 1],
    name="ALongerTitle"
))
fig.write_image("test.svg")

test

Saving to another format gives the full legend.

@gvwilson gvwilson assigned gvwilson and unassigned gvwilson Jul 26, 2024
@gvwilson gvwilson added P3 not needed for current cycle bug something broken labels Aug 12, 2024
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
Development

No branches or pull requests

2 participants