question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove `Aa` in legends with text?

See original GitHub issue

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

  • 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:closed
  • Created 5 years ago
  • Reactions:18
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

30reactions
pdfabbrocommented, Jul 23, 2019

Why would anybody ever want “Aa” to show up in the legend?? Having it blank or configurable should be the default behaviour.

12reactions
eunakacommented, Feb 13, 2019

I solved adding to the global style:

g.pointtext { display: none; }

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found