Is anyone really familiar with either PROC GCHART or annotating datasets?
I'm trying to create a bar graph with the frequency counts on the inside and unique percentages for each group on the outside. I've successfully made the graph I want in PROC GCHART with the frequencies inside the bars. However I can't get PROC GCHART to pull the right percents--it keeps automatically using the percent of my GROUP variable "House_Age" when really I want the percent of my SUMVAR "Frequency". Is it possible to change which variable GCHART uses to calculate percents or do I need to find a way to do this manually with an annotate statement?
Here is my code:
proc gchart data=WORK.&DIRECTORY.;
vbar &RESULT. / DISCRETE GROUP=HOUSE_AGE
PATTERNID=MIDPOINT
type=sum
sumvar=Frequency
inside=sum
outside=pct
maxis=axis1
raxis=axis2
run;
QUIT;
Any advice will be warmly received!
Thanks a million,
Katie
... View more