Data visualization with SAS programming

Title1; number of lines

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 115
Accepted Solution

Title1; number of lines

Hello,

Is there a way to force a title to display 2 lines. Even if the test in the title fits in one line.

I have to side by side titles and I want them both the same size.


Accepted Solutions
Solution
‎07-08-2011 02:37 PM
SAS Employee
Posts: 2

Title1; number of lines

Every time SAS sees a J= (justify) option in a title, the title goes to a new line.  So, something like the following:

  title j=l "This is the first part" j=l "This is the second part";

will split the title across two lines.

View solution in original post


All Replies
Frequent Contributor
Posts: 139

Title1; number of lines

could you please give example on how you need he display to help understand better

SAS Super FREQ
Posts: 925

Title1; number of lines

You can use TITLE1-TITLE9 to control which text is on which line. You can use the font attribute options to make the text sizes the same for each line. Does that answer your question?

Hope this helps,

Dan

Solution
‎07-08-2011 02:37 PM
SAS Employee
Posts: 2

Title1; number of lines

Every time SAS sees a J= (justify) option in a title, the title goes to a new line.  So, something like the following:

  title j=l "This is the first part" j=l "This is the second part";

will split the title across two lines.

SAS Super FREQ
Posts: 925

Title1; number of lines

Because it's not clear which procedure you are using, I will mention that the justication behavior described by Mike works for device-based graph procs (GCHART, GPLOT, etc.) but not for ODS Graphics (template-based) procedures (SGPLOT, SGPANEL, SGSCATTER). The TITLE statement technique should work in either case.

Thanks!

Dan

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 217 views
  • 3 likes
  • 4 in conversation