I've worked on a few client projects with Dash where the client asked that the Aa in the legend be removed. To do so, I had to create a set of new traces on top of the existing traces without the text key, and then remove the legend item from the original traces, i.e.:
[
{x: [1, 2, 3], y: [3, 1, 2], text: ['a', 'b', 'c'], 'showlegend': false, 'legendgroup': 'trace-1', marker: {color: 'blue'}},
{x: [1], y: [3], 'showlegend': true, 'legendgroup': 'trace-1', marker: {color: 'blue'}},
]
And in the community, some users don't understand why or how the Aa appears (https://community.plot.ly/t/dash-legend-label-extrange-behavoiur-scatterplot/13255).
I feel like the number of folks that want it removed outweighs the number of folks that see the benefit of having it, although I only have anecdotal evidence.
It's hard to tell, given the selection bias (we'll only ever hear from the people who don't like it).
If not, could we make a new key to remove it?
Definitely. I wonder if we can do something generic like legendstyle: {mode: 'lines+markers'} so you could modify any of the relevant style attributes? Related: #1701 - though I'm not sure if that would quite fit into legendstyle, as the label doesn't exist on the plot itself.
I solved adding to the global style:
g.pointtext {
display: none;
}
Now in https://github.com/plotly/plotly.js/issues/2967
Why would anybody ever want "Aa" to show up in the legend?? Having it blank or configurable should be the default behaviour.
is this issue ever fixed please?
Nope.
Most helpful comment
Why would anybody ever want "Aa" to show up in the legend?? Having it blank or configurable should be the default behaviour.