02-16-2017 05:34 AM - last edited on 02-16-2017 05:53 AM by Rick_SAS
Currently, I want to produce a 100% stacked Bar chart as below using sgplot
Here is the data table
The graph above is the result from Gchart procedure, now I want to use Sgplot instead. I've been struggled with this recently but still can't find a way to work this out. Can somebody point me in the way how I would set this up?
02-16-2017 10:15 AM
In addition to the techniques referred to by Rick, you can also by-pass externally computing the percentage values by using a combination of STAT=PCT and PCTLEVEL=GROUP.
proc sgplot data=sashelp.cars pctlevel=group; vbar origin / group=type stat=pct seglabel; run;
Hope this helps!