chart value (Y)s series and Category (Y)s series word wrap
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
- 107 Developer Announcements
- 53 Articles
- 106 General Questions
- 142 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management