Help using Base SAS procedures

proc gchart, format inside=subpct

Reply
Contributor
Posts: 36

proc gchart, format inside=subpct

I have some gcharts where the response bar are subdivided by another classification. Unfortunately, the percent number reported within the bar has 2 decimal places which takes up too much room. Is there anyway to get the percentage to display no decimal places?

Thanks,

Bruce


proc gchart data=new;
Vbar age /
TYPE=PCT
subgroup=disposition_new
Inside=subpct
G100
GROUP=age
NOZERO
Raxis=axis1
GAXIS=AXIS2
width=15
space=0
maxis=axis3
legend=legend3;
run;
Super Contributor
Posts: 291

Re: proc gchart, format inside=subpct

Try using a format statement ...
Contributor
Posts: 36

Re: proc gchart, format inside=subpct

I can't get a format on the subpercent because it is caluculated within the proc.
Super Contributor
Posts: 291

Re: proc gchart, format inside=subpct

Could you post a few rows of data to go along with your code? Then others can play too.
Super Contributor
Super Contributor
Posts: 3,174

Re: proc gchart, format inside=subpct

Here is a SAS tech note I found at the SAS support http://support.sas.com/ website making a general reference to SUBPCT and needing to use the ANNOTATE facility. I would suggest you open a SAS support track to pursue your interest here.

Scott Barry
SBBWorks, Inc.

Sample 24887: Annotate values for each subgroup bar
http://support.sas.com/kb/24/887.html
Contributor
Posts: 36

Re: proc gchart, format inside=subpct

Thanks to all,

A little pre-processing of the data to match the example given in the SAS note suggested by Barry and then it worked fine.

Thanks to all for your help.
Ask a Question
Discussion stats
  • 5 replies
  • 785 views
  • 0 likes
  • 3 in conversation