Hi everyone! I'm trying to create two different annotations for two line plot. data myanno; set graphlib.sales_info; length function $10 text $15; retain xsys ysys "2" style "swiss" function "Label" size 1.5; x=year; y=put(expected_sales, dollar6.) || " million"; color="red"; text="sales1"; output; y=put(actual_sales, dollar6.) || " million"; color="green"; text="sales2"; output; run; This is the plot; proc gplot data=graphlib.sales_info; plot expected_sales*year actual_sales*year/ overlay vaxis=axis1 haxis=axis2 anno=myanno; symbol1 v=circle cv=rose l=1 c=charcoal i=join w=1; symbol2 v=circle cv=blue l=1 c=SALMON i=join w=1; axis1 order=(35000,40000,45000,50000,55000) label= (font="arial" angle=90"Drug Sales" ) minor=(n=10) offset=(1,1)cm; axis2 order=(2010,2011,2012,2013,2014) label= (font="arial" "Year" ) minor=(n=3) offset=(1.5,1.5)cm; run; quit; LOG messag; NOTE: ERROR DETECTED IN ANNOTATE= DATASET WORK.MYANNO. USE THE YC VARIABLE FOR DATA VALUES WHEN TYPE IS CHARACTER NOTE: ERROR LIMIT REACHED IN ANNOTATE PROCESS. PROCESSING IS TERMINATED. NOTE: PROCESSING TERMINATED BY INDIVIDUAL ERROR COUNT. NOTE: 1 TOTAL ERRORS. Any clue how I can resolve this?
... View more