-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Histogram should not prepend any text to axis and hover labels (e.g. "sum of ...") #3694
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
Comments
Co-authored by: Nicolas Kruchten <[email protected]> Related to plotly/plotly.py#2876 (comment) Related to plotly/plotly.py#3694
Co-authored-by: Nicolas Kruchten <[email protected]> Related to plotly/plotly.py#2876 (comment) Related to plotly/plotly.py#3694
Co-authored-by: Nicolas Kruchten <[email protected]> Related to plotly/plotly.py#2876 (comment) Related to plotly/plotly.py#3694
Co-authored-by: Nicolas Kruchten <[email protected]> Related to plotly/plotly.py#2876 (comment) Related to plotly/plotly.py#3694
This requests makes sense but can't make it the default behaviour as 1) it would be a backwards-incompatible change and 2) when doing exploratory analysis it's extremely important that the Y axis correctly displays the operation being done on the data. I would be open to a pull request which added a flag to all PX functions that accept |
Hi, Brylie, I have encountered the same problem, have you found a way to remove the "sum of" from the y-axis label? |
I was able to remove the text using the example from @nicolaskruchten |
Split from #2876
We need to localize all texts in our project. So, we can't rely on auto-generated, English labels such as "sum of" or "probability."
Issue
The following code produces the correct chart. However, the auto-generated phrase "sum of" appears in the axis label and hover text.
Expected outcome
The desired output would be that the y-axis label and hover text would be "total minutes" rather than "sum of total minutes," the latter of which we cannot localize. Specifically, when
labels
are defined for chart dimensions, the aggregation type ("sum of" in this case) should not be prepended to the text, since the content and data language may not be English.The text was updated successfully, but these errors were encountered: