Closed
Description
I'm 😢 that I can add a heading to the different groups generated by legendgroup
.
I'd like to group my traces by a particular property on the input data, and also display a label.
Imagine data:
[{ 'group': 'A', name: 'thing 1'},
{ 'group': 'A', name: 'thing 2'},
{ 'group': 'B', name: 'thing' }]
If I want the legend to include context about the group, I'd have to prefix the name with the group:
- A: thing 1
- A: thing 2
- B: thing
Whereas if we had the ability to add an overarching legend headings (and for each group) we could do this:
A
- thing 1
- thing 2
B
- thing
you can see where this is an issue with longer group names