You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: 0 and small values aren't displayed on Bar Chart when textposition is set to auto #6544
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.
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`[/+]on Mar 30, 2023
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[/+]on Mar 30, 2023
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`[/+]on Mar 30, 2023
Activity
[-]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`[/+][-]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[/+][-]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`[/+]emilykl commentedon Aug 28, 2026
Consolidating with #6474 since it seems to be the same issue. I just tested with plotly.js v4.0.0 and can confirm that the bug is still present.