proc format;
picture posval low-high='000,009';
run;
proc sgplot data=stat_qtr1 NOAUTOLEGEND;
needle x =yqtr y =p_pos/baseline =0 lineattrs =(color =blue thickness =3);
needle x =yqtr y =p_neg/baseline =0 lineattrs =(color =red thickness =3);
series x =yqtr y =all/y2axis lineattrs =(color =green thickness =2);;
format yqtr year2.
p_neg p_pos posval. ;
xaxis label = "Year"; yaxis label="Percentage" ;
yaxis grid values =( -10 to 10 by 5 ) min=-10 max=20 valueshint label="# of observations" ;
y2axis values =(-0 to 5000 by 1000) min=-2500 max=5000 valueshint label="# of observations" ;
run; quit;