Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Aa in legends with text? #2967

Closed
chriddyp opened this issue Sep 3, 2018 · 9 comments
Closed

Remove Aa in legends with text? #2967

chriddyp opened this issue Sep 3, 2018 · 9 comments
Labels
feature something new

Comments

@chriddyp
Copy link
Member

chriddyp commented Sep 3, 2018

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?
@alexcjohnson
Copy link
Collaborator

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.

@alexcjohnson alexcjohnson added the feature something new label Sep 4, 2018
@eunaka
Copy link

eunaka commented Feb 13, 2019

I solved adding to the global style:

g.pointtext {
display: none;
}

@etpinard
Copy link
Contributor

etpinard commented Apr 5, 2019

Now in #2967

Now in #3735

@etpinard etpinard closed this as completed Apr 5, 2019
@pdfabbro
Copy link

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

@z7ye
Copy link

z7ye commented Oct 8, 2019

is this issue ever fixed please?

@pdfabbro
Copy link

pdfabbro commented Oct 9, 2019

Nope.

@nicolaskruchten
Copy link
Contributor

Please note that in the upcoming v2 of the library, this Aa text will no longer appear in the legend: #5682

@jaimeMontea
Copy link

Please note that in the upcoming v2 of the library, this Aa text will no longer appear in the legend: #5682

I'm interested. Do you know when it is going to be released? Thanks.

@nicolaskruchten
Copy link
Contributor

Working on the release now, should be a week or so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

No branches or pull requests

8 participants