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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1184 views
  • 0 likes
  • 2 in conversation