BookmarkSubscribeRSS Feed
AmitKB
Fluorite | Level 6
Hi everyone,
Thanks for your help in advance.
I want a vbar using proc gchart (if possible) for the following data: Type is main group, school is sub group and section are sub-sub group. I want the data for section stacked.

type school section count
A sh1 A 10
A sh1 B 15
A sh2 A 23
A sh2 B 17
B sh1 A 9
B sh1 B 22
B sh2 A 16
B sh2 B 7

Thanks,

Amit
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
You'll have to look at the SAS/Graph doc, because I'm typing this from memory, but it's something like:
[pre]
proc gchart data=work.???;
vbar3d var1 / sumvar=var2 type=sum
subgroup=var3
group=var4;
run;
quit;
[/pre]

You can use other statistics for TYPE=, like TYPE=MEAN .. but that's in the doc.
cynthia
AmitKB
Fluorite | Level 6
Thanks a lot.

Amit

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1114 views
  • 0 likes
  • 2 in conversation