Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can I keep space in chart title?

Hello Everyone,

I try to adjust Chart Title caption by adding space.I add Title Caption ='                    Comments' to adjust title caption alignment. Please see attached pic. But those space will gone after I publish this application to upfront.

Do you have any idea to adjust the Chart Titlte position flexibly? Or anyway I can keep those space I add to title.

Thanks,

Dust

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

The solution to maintaining spaces in webview is to use chr(160) for the space characters. e.g.

=repeat(chr(160),8)  & 'My Title'

will keep 8 leading spaces.

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

View solution in original post

18 Replies
sushil353
Master II
Master II

add space using chr(10) or chr(39)

HTH

Sushil

Not applicable
Author

Thank you very much - Sushil!

Can you tell more how to code this? Can I say =chr(10)&chr(39)&'Comments'?

Best regards,

Dust

Anonymous
Not applicable
Author

Hi Dust,

Did u find solution how to add space because I am facing same here.. How to code it?

sushil353
Master II
Master II

Hi Praveena,

You can add spaces using chr() function..

chr(9)- one space

chr(10)- new line

try and test above in text box like ='Praveena'&chr(9)&chr(9)&'velagapudi'

HTH

Sushil

Not applicable
Author

Hi Dust,

You can try something like ' ' & ' ' Comments ' ' & ' ' & Comments1 etc.

' ' gives one space and this way you can manage spaces accordingly.

Thanks!!

-Yojas

Not applicable
Author

Hi Praveena,

You can try ='                words'

Some chart is working.

Thanks,

Dust

Not applicable
Author

The simplest way is to use "header alignment" in "Caption" tab, right?

HTH

Not applicable
Author

Thanks -- HTH.

Sometimes I need more flexible aligment on title position.

Not applicable
Author

Hi Dust,

If you got your Solution then please mark this conversation as Correct so that people use it for further referece.

- Yojas