是这样的,想将五年的数据做一个对比将环形图叠加,
Factor 2017 2018 2019 2020 2021 2022
Cubic 30.12 28.98 31.22 33.54 29.18 30.36
Quantity 5.12 5.23 3.66 4.21 6.01 4.87
Yield 31.18 29.08 32.76 31.54 30.09 31.24
Shipping 31.88 34.56 32.28 29.88 33.75 31.23
Other 1.7 2.15 0.08 0.83 0.97 2.3
程序:goptions reset=global gunit=pct border cback=white
colors=(blue green red yellow purple) ctext=black ftext=swissb ftext=swiss htitle=6 htext=4;
title 'Influence on Cost';
footnote h=3 j=right 'GR13N09';
legend label=none
shape=bar(4,4)
position=(middle left)
offset=(5, )
across=1
mode=share;
proc gchart data=work.test;
format '2017'n '2018'n '2019'n '2020'n '2021'n '2022'n dollar8.2;
donut factor/sumvar='2017'n
subgroup=
donutpct=30
coutline=black
ctext=black;
run;
quit;
书上例子是加黑的地方用来做分组环形图的分组依据的,不过如果数据记录方式是像我上面那样记录的话根本没办法分组啊。就不能每一列算作分组画出每一年的环形然后叠在一起?
不行就算了……