Repository navigation
Legend titles #276
Description
Activity
That'd be cool. But I'll have to put this in the low-priority bin I'm afraid.
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) ?
Hi,
was there any improvement on this direction? is it still not possible to have a legend title?
thanks
Reacted by harisbal- changed the title
[-]Add layout.legend.title & layout.legend.titlefont properties[/-][+]Legend titles[/+]on Oct 31, 2019 Updating this issue to say: we need
layout.legend.titlein the same shape aslayout.title. Basically want text, font, positioning :)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.titleworks 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 :)Should we support mathjax in the first iteration?
not necessary IMO
Reacted by etpinardnot 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

I think I was able to make mathjax work on legend titles similar to legend items.
Reacted by Alex Johnson
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...