June 29, 2012, 03:49 PM
JamilaI need to set title in three lines
setTitleString("&HDR_LN1");
setTextJustHoriz(getTitle(),1);
setTitleString("&HDR_LN2");
setTextJustHoriz(getTitle(),2);
setTitleString("&HDR_LN3");
setTextJustHoriz(getTitle(),3);
Average Number of HealthChoice Medicaid Eligibles Per Month
Ordered by Age Group
Fiscal Year 2007-2011
Does any one know how to center them at the top of the graph?
June 29, 2012, 04:48 PM
DougTry using "HEADING CENTER" or use the Graph Assistant or as stated above...
June 30, 2012, 09:39 AM
JamilaI have tried with heading center...it does not really work with 16X9 monitor...my client will like to see heading to be center to any type of monitor..I have found the previous code is very good for my first two lines...I mean text sting title and subtitle...however, I need to add third line..for which I don't know which code to use
July 01, 2012, 02:53 PM
<JG>You can only have 1 title string.
It's java.
-SET &TITLE = 'Title line 1 \n Title Line 2 \n Title line 3';
-* Graph title
setTitleString("&TITLE");
-* Center the title
setTextJustHoriz(getTitle(),1);
You can not justify individual lines.
July 02, 2012, 08:29 AM
JamilaThank you so much. This code really work.
-SET &HDR_LN1 = 'Average Number of ' | &HDR1 | ' Medicaid Eligibles Per Month';
-SET &DTE_LNE = &CFY_TTL | ' ' | &HDR_DTE ;
-*
-SET &HDR_LN3 = IF &TOTFLG EQ '1' THEN ' ' ELSE &DTE_LNE ;
-*
-SET &HDR_LN2 = IF &TOTFLG EQ '1' THEN &DTE_LNE
- ELSE ('Ordered by ' | &HDRV );
-SET &TITLE = '&HDR_LN1.EVAL \n &HDR_LN2.EVAL \n &HDR_LN3.EVAL';
setTitleString("&TITLE");
setTextJustHoriz(getTitle(),1);