PDA

View Full Version : [CLOSED] Word Wrap Chart X-Axis



jchau
Jul 02, 2014, 9:26 PM
I am able to wrap the label on X-Axis by replacing whitespace with /n in the data. However, it offsets the vertical position of multiline labels. In the attached picture, labels with 2 lines of text is further away from the x-axis and labels with 3 lines is even further. Is there something I need to do here? I checked the html and each line is rendered as a tspan. I dont see any kind of padding that I can change.

http://forums.ext.net/attachment.php?attachmentid=13251&stc=1

jchau
Jul 02, 2014, 11:43 PM
I was able to fix this by override drawHorizontalLabels on the Axis class. Not sure why they are calculating the label's y value based on height of the label....

Daniil
Jul 03, 2014, 8:13 AM
Hi @jchau,

Nice that you were able to fix the problem.


Not sure why they are calculating the label's y value based on height of the label....

Hard to say...