question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text is cut off on bars where textposition=outside

See original GitHub issue

When drawing a bar plot with { textposition: outside }

the text of the highest values is sometimes cut off:

plotly_bars_text

JSFiddle: https://jsfiddle.net/vuqugx8v/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
dfaivrecommented, Aug 6, 2019

In case some one stumbles across this, use the cliponaxis: false option (from the above referenced PR)

Example - CodePen

0reactions
brandonerosecommented, 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 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text cutoff in Plotly subplot, Python - Stack Overflow
I am trying to make a subplot with 4 bar plots to show the distributions for 4 categorical variables. I want ...
Read more >
Need help on python dash bar text label is cut off from the graph!
Hi all, I am building a scatter plot and wanted to show the data label in the chart. However, some of the data...
Read more >
Prevent long x-axis ticklabels from being cut off in bar charts ...
Text can get cut off on bars when the textposition="outside" . To avoid this, along with setting the margins to fix y-axis label...
Read more >
Plotly Tutorial for Everyone 😁 | Kaggle
Welcome to this notebook. This kernel aims at depicting various plots and visualization techniques which can be done using plotly library.
Read more >
Visualization: Area Chart - Google Developers
textPosition. Position of the horizontal axis text, relative to the chart area. Supported values: 'out', 'in', 'none'. Type: string. Default: 'out'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found