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

Continue legend overflow on new line #534

Open
kwcantrell opened this issue Jul 17, 2021 · 1 comment
Open

Continue legend overflow on new line #534

kwcantrell opened this issue Jul 17, 2021 · 1 comment

Comments

@kwcantrell
Copy link
Collaborator

It was brought up that some journals put restrictions on legend size. So, it would be nice to also allow legend text to continue on a new line.

We can set up a toggle on the legend that will either fit all legend text on single line (currently how its done) or continue legend text on a new line when overflow happens.

@fedarko
Copy link
Collaborator

fedarko commented Jul 17, 2021

This sounds like a nice idea. If I can ask, what sort of legend text is causing the problem? I know this is a problem with long taxonomy strings (e.g. species-level ones) -- but I'm sure these won't be the only problematic cases.

From a bit of messing around with the HTML, it should be possible to insert <br> tags into the legend label text (as shown in the first two categories below), although there's probs a cleaner way to do this.

image

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

No branches or pull requests

2 participants