Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Grid Chart X-asis label arrange in two lines

Hi all

Good morning.  My Grid Chart's x-axis labels are too long. So I'd like to break these labels in two lines (or wrap text) so that I can show the whole labels.  Does anyone know how to do it?

Capture.PNG

Cheers

Wallace

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Just want to share at the end how this can be done...  Just added a script in Dimension of the chart, then the label (if too long) can be separated into 2 lines. 

Capture.JPG

=if(len([FieldName])>15,left([FieldName],FindOneOf([FieldName],' ',2)-1)&chr(13)&mid([FieldName],FindOneOf([FieldName],' ',2)+1),[FieldName])

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Just want to share at the end how this can be done...  Just added a script in Dimension of the chart, then the label (if too long) can be separated into 2 lines. 

Capture.JPG

=if(len([FieldName])>15,left([FieldName],FindOneOf([FieldName],' ',2)-1)&chr(13)&mid([FieldName],FindOneOf([FieldName],' ',2)+1),[FieldName])