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] Text is cut off on bars where textposition=outside #2001
Reacted by Tim Abwao, Efrat Magidov, Fahim Foysal, linn-karlsson and NorLz
Reacted by Dadv, Tim Sauchuk, Terry Creamer, dmbhatti, osadsanu, Prashanth Rao, Brandon Mitchell, Mateus Mendelson, Nabil Seid, Efrat Magidov and 1 more
I just ran into a case where setting cliponaxis: false just wouldn't work. One workaround is to explicitly set the yaxis range to [0,7000] but I think more direct is to set the top margin to 20px or something large enough to show the label
for a bar chart the only thing that works for me is calculating the max value and multiplying the max by 1.1 to extend the range. Hope this gets fixed.
changed the title [-]Text is cut off on bars where textposition=outside[/-][+][BUG] Text is cut off on bars where textposition=outside[/+]on Sep 15, 2025
Activity
alexcjohnson commentedon Sep 13, 2017
Yes, this is the same issue as #2000 - closing this one, we will make sure the fix handles both scatter and bar traces.
babykick commentedon Dec 5, 2017
Has the bug been Fixed or not yet? I recently use Dash to plot bar chart, the cut off problem still exists.
dfaivre commentedon Aug 6, 2019
In case some one stumbles across this, use the
cliponaxis: falseoption (from the above referenced PR)Example - CodePen
protobi-pieter commentedon Nov 12, 2021
I just ran into a case where setting
cliponaxis: falsejust wouldn't work. One workaround is to explicitly set the yaxis range to[0,7000]but I think more direct is to set the top margin to 20px or something large enough to show the labelSet top margin to 20px

Set yaxis range a little wider:

brandonerose commentedon Nov 29, 2021
for a bar chart the only thing that works for me is calculating the max value and multiplying the max by 1.1 to extend the range. Hope this gets fixed.
brandonerose commentedon Nov 29, 2021
I found a useful workaround! If you add the label as an annotation instead of texposition outside it will not get cut off :)
[-]Text is cut off on bars where textposition=outside[/-][+][BUG] Text is cut off on bars where textposition=outside[/+]emilykl commentedon Sep 15, 2025
special case of #2000
emilykl commentedon Dec 17, 2025
Reopening this one as it best captures the specific issue addressed by #7675