Skip to content

Legend titles #276

Description

@cpsievert

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...

Activity

  1. etpinard commented on Feb 23, 2016

    @etpinard
    Contributor

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

  2. suribabu39 commented on Feb 14, 2017

    @suribabu39

    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) ?

  3. ggrrll commented on May 2, 2018

    @ggrrll

    Hi,

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

    thanks

  4. added this to the v1.52.0 milestone on Oct 31, 2019
  5. changed the title [-]Add layout.legend.title & layout.legend.titlefont properties[/-] [+]Legend titles[/+] on Oct 31, 2019
  6. nicolaskruchten commented on Oct 31, 2019

    @nicolaskruchten
    Contributor

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

  7. nicolaskruchten commented on Nov 1, 2019

    @nicolaskruchten
    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 :)

  8. self-assigned this
    on Nov 14, 2019
  9. archmoj commented on Nov 20, 2019

    @archmoj
    Contributor

    Should we support mathjax in the first iteration?

  10. nicolaskruchten commented on Nov 20, 2019

    @nicolaskruchten
    Contributor

    not necessary IMO

  11. alexcjohnson commented on Nov 20, 2019

    @alexcjohnson
    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

  12. archmoj commented on Nov 20, 2019

    @archmoj
    Contributor

    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions