BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BLarson
Obsidian | Level 7

Hello, this is my first attempt to annotate a graph proceedure.  I am looking to label a individual endpoint.  In the below example I am using "wowididit" but this later would be replaced by the actual value.  I have created the annotation data set.  Then built the template for a Layout Datapanel view with a CLASSVAR (perhaphs this is my issue).  I am receiving no errors, however there also is nothing being annimated on the graphical output.  Any guidance or suggestions would be greatly appreciated.  Thank you.

 

/* make annotation dataset */

DATA SERIESANNO;

LENGTH function style color $8. text $25.;

RETAIN hsys xsys ysys "5";

function="label";

x=10;

y=.60;

position="3";

text="wowididit";

style="calibri";

color="bib";

size=6;

OUTPUT;

RUN;

/* series graph template */

PROC TEMPLATE;

DEFINE STATGRAPH SERIES_PLOT1_1;

BEGINGRAPH /DATACOLORS=(yellow CX000A23 CX0073CF CXE31837 CXD1C9C0 CX00AD50) DATALINEPATTERNS=(4);

ENTRYTITLE TEXTATTRS=(FAMILY="Calibri" SIZE=8pt)'ITP Completed In <= 10 Days' ;

LAYOUT DATAPANEL CLASSVARS=(LOANPURPOSEGROUP) / rowdatarange=unionall ROWS=2

ROWAXISOPTS = (display=(tickvalues)

linearopts=(tickvalueformat=PERCENT7.1)

label=("ITP <= 10 Days") labelattrs=(FAMILY="Calibri" SIZE=8pt))

COLUMNAXISOPTS= (linearopts=(viewmax=10)

label=("Loan Age In Calendar Days") labelattrs=(FAMILY="Calibri" SIZE=8pt));

SIDEBAR;

discretelegend 'series' / TITLEATTRS=(FAMILY="Calibri" SIZE=8pt) ;

ENDSIDEBAR;

 

LAYOUT PROTOTYPE;

SERIESPLOT x=DAY_CT y=ITD_LT10_PCT / GROUP=APPDT_YYYYMM NAME='series' ;

ANNOTATE;

ENDLAYOUT;

 

ENDLAYOUT;

ENDGRAPH;

END;

RUN;

PROC SGRENDER DATA=WORK.CUMM_GRAPH_EXCL_CANC TEMPLATE=SERIES_PLOT1_1 SGANNO=SERIESANNO;

RUN;

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

You cannot use the old style SAS/GRAPH annotation data set with the new SG procedures.  You will need to create a new data set that has the annotation syntax supported by SG procedures.  See doc here.

View solution in original post

3 REPLIES 3
Jay54
Meteorite | Level 14

You cannot use the old style SAS/GRAPH annotation data set with the new SG procedures.  You will need to create a new data set that has the annotation syntax supported by SG procedures.  See doc here.

BLarson
Obsidian | Level 7

Thank you for the guidance.  I am a big fan of your books!  I will read the link.  Again thank you very much.

BLarson
Obsidian | Level 7

I understand now where I was off.  I was now successful in my attempt.  Again I greatly appreciate the guidance!!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1225 views
  • 1 like
  • 2 in conversation