I'm working on extjs chart. when the axis labels have big texts, at the edges of the Chart the texts are cut off. How to word wrap long labels? Any suggestions? Here is my code: https://fiddle.sencha.com/#fiddle/15ef
相关问题
- How to make limits on the Y axis be the same using
- Sencha Touch Uncaught typeError: undefined is not
- How I'll create a model from json file? (ExtJS
- Decimal precision in an EXTJS grid
- Google Charts-Code for Category Filter
相关文章
- Mercurial Commit Charts / Graphs [closed]
- Change color of bars depending on value in Highcha
- Sencha Ext.define Uses vs Requires
- Scrolling issues with ExtJS 5 app inside IFrame
- Google Chart veritcal axis with percentage sign
- Google Combo Chart add horizontal and vertical lin
- ChartJS. Change axis line color
- Center align title in Google Chart
adding newlines every n words should do the trick. Try adding a renderer to your axes label. Implemented in fiddle and it isn't cutting off anymore
If you have extremely long labels that still cut off even with word wrap, you could truncate the labels after n characters. Ext has a cool ellipsis function for that
You may insert
\n
at any place you want to break the line.