Remove `Aa` in legends with text?
See original GitHub issueI’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).
- Could we just remove it by default? 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.
- If not, could we make a new key to remove it?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:18
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How to remove 'Aa' from the legend in Plotly.py?
The 'Aa' is the result of the existence of text in the markers. If you remove text and leave just markers and lines,...
Read more >How to Remove 'Aa' from the Legend - Plotly Community Forum
One alternative is to have two traces: one for markers and one for text, then hide the legend entry for the text one...
Read more >How to hide legend with Plotly Express and Plotly in Python?
In this example, we are hiding legend in Plotly Express with the help of method fig.update_traces(showlegend=False), bypassing the show legend ...
Read more >Formatting the legend on a paginated report chart
Right-click the legend and click Legend Properties to change values for the legend text, background color, borders, and 3D effects. To change ...
Read more >Form Instructions | Web Accessibility Initiative (WAI) - W3C
For example, to indicate required input fields and data formats in the text of the labels. Providing instructions within labels. For simple use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Why would anybody ever want “Aa” to show up in the legend?? Having it blank or configurable should be the default behaviour.
I solved adding to the global style:
g.pointtext { display: none; }