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.

Long label at category axis

See original GitHub issue

Hi,

And I would like to know if it’s possible to split long label at category axis in multiple lines. I’m using axis.axisLabel.interval = 0, because in category axis I have to show all labels and also chart width is fixed, so playing with grid didn’t help.

Thanks

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
dogrockercommented, Dec 21, 2015

Hello I’ve got the same problem with axis too.

Imgur

How to fix this I try to use rotate but it not help.

Thanks for help.

4reactions
cgatcommented, May 31, 2017

@dogrocker This can be done by increasing the y2 value of the the grid option (it will give your chart more space, and thus not cut off your labels)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change axis labels in a chart - Microsoft Support
Right-click the category labels you want to change, and click Select Data. Right-click the category axis and Select Data. In the Horizontal (Category)...
Read more >
Stagger long axis labels and make one label stand out in an ...
If you have long axis labels in a column chart, Excel will rotate them to fit the full labels in if the chart...
Read more >
Quick and easy ways to deal with long labels in ggplot2
Explore different manual and automatic ways to rotate, dodge, recode, break up, and otherwise deal with long axis labels with ggplot2.
Read more >
A note on long labels - From data to Viz
If your labels on the X-axis are long, they need to be rotated in order not to overlap. As a result, these labels...
Read more >
Wrapping, truncating, and auto-rotating axis labels - amCharts
Let's start off with a basic chart, that has very long labels on its Category axis: HTML; CSS; JS. Result; Skip Results Iframe....
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