菜单

gchart 绘制直方图

data ww.test17_3; /*创建数据集*/
input id q x;
cards;
1 1 16.88
2 1 3.03
3 1 9.72
4 1 35.22
5 1 62.55
6 1 13.61
7 1 44.25
8 1 6.28
1 2 10.81
2 2 3.44
3 2 8.7
4 2 18.94
5 2 59.61
6 2 14.15
7 2 29.42
8 2 1.24
1 3 10.38
2 3 2.02
3 3 6.74
4 3 15.43
5 3 52.5
6 3 13.35
7 3 32.22
8 3 9.07
1 4 7.61
2 4 4.72
3 4 3.4
4 4 13.2
5 4 54.95
6 4 11.03
7 4 31.76
8 4 8.97
;
run;
proc gchart data=ww.test17_3;
hbar q/ sumvar=x type=mean; /*绘制水平直方图*/
vbar q/ sumvar=x type=mean; /*绘制垂直直方图*/
run;