Bar chart with subgroup data

This graph is prepared for:

Xie X, McGregor M. Video capsule endoscopy for obscure GI bleeding and Crohn’s disease (Update to Report 7) Montreal (Canada): Technology Assessment Unit (TAU) of the McGill University Health Centre (MUHC); 2012 Jun 13. Report no. 60. 38 p. Available from:

https://secureweb.mcgill.ca/tau/sites/mcgill.ca.tau/files/muhc_tau_2012_60_vce.pdf

 

 

Plot: externally requested VCE procedures > 10 (2008 - 2011)             

 

proc sort data=dd1 out=dd2;

    by order;

run;

 

data dd3;

  set dd2;

  order1=_n_;

  fmtname='orderfmt';

  start=order1;

  label=Hospital;

  run;

 

proc format cntlin=dd3;

run;

 

/*ORDER= ("CSSS LAVAL", "Jewish", "Haut-Richelieu", "Charles-Lemoyne", "St-Mary", "Private" )*/

goptions reset=all;

/*title2 "Video capsule endoscopy test from external request, N > 10, from 2008 to 2011";*/

  axis1 label=(h=1.4 f=Arial 'Organization requesting video capsule endoscopy') origin=(24,) ;

  axis2 label=(h=1.4 f=Arial a=90 'Number of video capsule endoscopy tests at MUHC') width=1

          order=(0 to 50 by 10) value=(h=11pt) minor=none offset=(,0);

  legend1 label=none shape=bar(3,3) cborder=black  origin=(24,);

  proc gchart data=dd3 ;

  vbar3d order1 /  sumvar=QUANTITE subgroup=Year inside=sum    discrete

    outside=sum   width=10   space=5   maxis=axis1 raxis=axis2 legend=legend1;

    format order1 orderfmt.;

run;

quit;

goptions reset=all;

Prev productLabel data points (pointlabel)
Next productForest plot