程序如下:
data aa;
set h.m0815z151;
if flag=3 then disease_stage="Cirrhosis";
if flag=2 then disease_stage="CHB";
if flag=4 then disease_stage="HCC";
annual_total_medical_cost=sumfybtx1;
drop year;
data aa;
set aa;
year=in_year;
label year="就诊年份";
run;
proc sort data=aa;
by year;
run;
proc template;
define style MystyleDefault;
parent=Styles.statistical;
style GraphLabelText from GraphLabelText/fontsize=14px;
style GraphValueText from GraphValueText/fontsize=12px;
end;
run;