我从SAS9.3 Graph官方文件中,发现了一个proc程序
- data one;
- length name $ 20;
- input name $ tradevolume ratio average;
- cards;
- 招行 4500000 0.16 0.30
- 建行 3700000 0.22 0.30
- 工行 3100000 0.29 0.30
- 中行 2100000 0.29 0.30
- 交行 1900000 0.35 0.30
- 广发 1500000 0.29 0.30
- 农行 1400000 0.32 0.30
- 中信 900000 0.32 0.30
- 平安 800000 0.65 0.30
- 民生 750000 0.32 0.30
- 兴业 500000 0.38 0.30
- 光大 500000 0.29 0.30
- ;
- run;
- goptions reset=all border;
- ods listing close;
- ods html style=analysis gtitle nogfootnote;
- title1 "重点银行信用卡餐娱类交易金额及银标占比情况";
- axis1 label=(j=c "全品牌交易金额") minor=none; /* left */
- axis2 label=(j=c "银标占比") minor=none; /* right */
- axis3 label=none; /* bottom */
- legend1 position=(left c outside) across=1;
- legend2 position=(l c outside) across=1 repeat=1;
- symbol1 c=red value=circle;
- symbol2 c=green value=dot;
- proc gbarline data=one;
- bar name / discrete sumvar=tradevolume
- raxis=axis1 maxis=axis3 legend=legend1
- des="重点银行信用卡餐娱类交易金额及银标占比情况";
- plot / sumvar=ratio legend=legend2 axis=axis2;
- plot / sumvar=average;
- run;
- quit;
-
- ods html close;
- ods listing;
复制代码
感觉都没有Excel的好看。
呵呵。