chart value (Y)s series and Category (Y)s series word wrap
Options
Comments
-
The following code wraps the Y Axis labels if they are longer than 6 characters. If you wrap the labels, you might also need to change the Scale settings on the Format Chart tab to avoid overlapping text.
function beforeDrawAxisLabel( axis, label, icsc ) { var l1 = label.getCaption().getValue(); var len = l1.length(); var brk = 6 if (len > brk) { label.getCaption().setValue(l1.substr(0,brk) + "\n" + l1.substr(brk,len)); } }
Warning No formatter is installed for the format ipb0 -
Most likely the reason the chart is not displaying is because there is a syntax error in your code. I tested the code above and it works properly, so either it did not get copied correctly or there is a different issue with the code. Is there another beforeDrawAxisLabel function defined? Do all of the brackets match? Those are the most common issues.
Warning No formatter is installed for the format ipb1
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax