Skip to content

Legend titles #276

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

Closed
cpsievert opened this issue Feb 23, 2016 · 9 comments · Fixed by #4386
Closed

Legend titles #276

cpsievert opened this issue Feb 23, 2016 · 9 comments · Fixed by #4386
Assignees
Labels
feature something new
Milestone

Comments

@cpsievert
Copy link

In the past, we used layout.annotations hacks to add legend titles in https://github.com/ropensci/plotly, but it's hard to do it right...

@cpsievert cpsievert added the feature something new label Feb 23, 2016
@etpinard
Copy link
Contributor

That'd be cool. But I'll have to put this in the low-priority bin I'm afraid.

@suribabu39
Copy link

Hi, I understand that we can't directly give titles for legends. But is there any other away to show legend title (as it was mentioned that it can be done using layout.annotations) ?

@ggrrll
Copy link

ggrrll commented May 2, 2018

Hi,

was there any improvement on this direction? is it still not possible to have a legend title?

thanks

@nicolaskruchten nicolaskruchten added this to the v1.52.0 milestone Oct 31, 2019
@nicolaskruchten nicolaskruchten changed the title Add layout.legend.title & layout.legend.titlefont properties Legend titles Oct 31, 2019
@nicolaskruchten
Copy link
Contributor

Updating this issue to say: we need layout.legend.title in the same shape as layout.title. Basically want text, font, positioning :)

@nicolaskruchten
Copy link
Contributor

In terms of positioning, I would be fine with forcing the title to always be above the legend items, even in horizontal mode (similar to how layout.title works right now) but I would also be fine with having the title be beside the legend items in horizontal mode always, or with allowing the user to place the title anywhere in the legend. Whatever is easiest to implement and is future-friendly :)

@archmoj archmoj self-assigned this Nov 14, 2019
@archmoj
Copy link
Contributor

archmoj commented Nov 20, 2019

Should we support mathjax in the first iteration?

@nicolaskruchten
Copy link
Contributor

not necessary IMO

@alexcjohnson
Copy link
Collaborator

not necessary IMO

That's fine - just include it in https://github.com/plotly/plotly.js/blob/master/test/image/baselines/mathjax.png so we don't forget about it
Screen Shot 2019-11-20 at 6 23 18 PM

@archmoj
Copy link
Contributor

archmoj commented Nov 20, 2019

I think I was able to make mathjax work on legend titles similar to legend items.

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

Successfully merging a pull request may close this issue.

7 participants