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

How do I remove Aa from the legend? #290

Closed
spatel3-pcsa opened this issue May 21, 2022 · 3 comments
Closed

How do I remove Aa from the legend? #290

spatel3-pcsa opened this issue May 21, 2022 · 3 comments

Comments

@spatel3-pcsa
Copy link

Description

I have created multiple Traces with mode as text. I do not want to show symbols and instead show Alpha characters. When doing this I see Aa in the legend.

Repro steps

Trace overlayTrace = new Trace("scatter");
overlayTrace.SetValue("x", x);
overlayTrace.SetValue("y", y);
overlayTrace.SetValue("name", $"{alphachar} {series}");
overlayTrace.SetValue("mode", "text");
overlayTrace.SetValue("text", alphachar);

Expected behavior

Remove Aa when only Text is shown and no symbol.

image

Actual behavior

image

Known workarounds

I am searching for the solution and some suggested updating the plotly cdn to the latest will resolve the issue. Is there a way to update the cdn in Plotly.NET?

Related information

  • Windows Server x64
  • Plotly.NET
  • .NET Framework 4.5
@kMutagene
Copy link
Collaborator

kMutagene commented May 23, 2022

The issues that were solved for plotly.js 2.0.0 was this one here: plotly/plotly.js#5679 , which only removes "Aa" for traces with mode "something+text", not "text". While we should offer users changing the cdn version in the future, Plotly.NET 2.0.0 currently uses plotly.js 2.6.3, so the cdn is not the problem (also, Aa is still displayed when using the most recent plotly.js version).

I have skimmed through the plotly.js docs and have not found a way to do what you are trying here. If you can link a js or python sample that can do it, i can help translating it.

@kMutagene
Copy link
Collaborator

closing until we get an example, until then i assume that this is just not supported by plotly.js itself

@spatel3-pcsa
Copy link
Author

spatel3-pcsa commented Oct 11, 2022 via email

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

No branches or pull requests

2 participants