FOCUS AREAS

Graphics

Waterfall Chart
Waterfall Chart
Base SAS: ODS Graphics Procedures: SGPLOT

data transactions;
 length id $10;
 format Amount dollar.;
 input ID $ Amount type $;
 datalines;
Income-1    2000 Credit
Income-2    1000 Credit
Interest    200  Credit
Rent       -800  Debit
Car        -400  Debit
Grocery    -500  Debit
Utilities  -400  Debit
;
/* Open the LISTING destination and assign the ANALYSIS style to the graph */ 
ods listing style=analysis;
ods graphics / width=5in height=2.81in;

title 'Cash Flow';
proc sgplot data=transactions noautolegend;
  waterfall category=id response=amount  / colorgroup=type dataskin=sheen datalabel name='a';
  keylegend 'a' / location=inside position=topright across=1;
  xaxis display=(nolabel);
  yaxis grid display=(nolabel) offsetmin=0;
run;