Skip to content

BUG: 0 and small values aren't displayed on Bar Chart when textposition is set to auto #6544

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

Open
GeorgeFlorian opened this issue Mar 29, 2023 · 0 comments
Labels
bug something broken P3 backlog

Comments

@GeorgeFlorian
Copy link

GeorgeFlorian commented Mar 29, 2023

On the bar chart when there are vastly different values (0, 10 and 200 000 000), the text for 0 and small values won't be displayed.

I need the textposition to be set to auto because on mobile I hide the Y axis labels and put them in the trace.text:

  • if I set it to inside and the bar is small the text will be crammed in there and will not be readable. And because we are on mobile, and the differences in values are very big, the bar will also be too small to touch it to see the hovertemplate;
  • if I set it to outside and the bar is too big, the text will be outside of the viewport. Note that I use cliponaxis: false, but being on mobile means that the viewport is too small.
  • and I can't set the range of the X axis because I use a grouped bar chart with slider and how do you even do that ?

The most simple approach is for textposition: "auto" to display everything and to behave just like it does now.

Here is a minimal example:
https://codepen.io/bleah1/pen/dyqLmvN

I am unable to use annotations because I am using a grouped bar chart with slider and it has this issue: #6543

@GeorgeFlorian GeorgeFlorian changed the title BUG: Small values aren't displayed on Bar Chart BUG: Small values aren't displayed on Bar Chart; textposition: outside isn't taken into account by automargin Mar 30, 2023
@GeorgeFlorian GeorgeFlorian changed the title BUG: Small values aren't displayed on Bar Chart; textposition: outside isn't taken into account by automargin BUG: Small values aren't displayed on Bar Chart Mar 30, 2023
@GeorgeFlorian GeorgeFlorian changed the title BUG: Small values aren't displayed on Bar Chart BUG: 0 and small values aren't displayed on Bar Chart when textposition is set to auto Mar 30, 2023
@gvwilson gvwilson self-assigned this Jul 5, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added bug something broken P3 backlog labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants