[CLOSED] Word Wrap Chart X-Axis

  1. #1

    [CLOSED] Word Wrap Chart X-Axis

    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.

    Attached Thumbnails Click image for larger version. 

Name:	chart_wrap.png 
Views:	172 
Size:	10.8 KB 
ID:	13251  
    Last edited by Daniil; Jul 08, 2014 at 5:25 AM. Reason: [CLOSED]
  2. #2
    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....
  3. #3
    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...

Similar Threads

  1. How to make the text word wrap in TextField
    By pathzk in forum 2.x Help
    Replies: 2
    Last Post: Apr 13, 2014, 2:39 AM
  2. [CLOSED] How to set font of X & Y axis in Line Chart
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 19, 2013, 6:44 AM
  3. [OPEN] [#252] Axis color in Chart
    By livehealthierGF in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: May 29, 2013, 3:54 AM
  4. [CLOSED] DisplayField word wrap alignment
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 19, 2012, 4:00 PM
  5. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM

Posting Permissions