We have the following data:
Color | Person |
---|---|
Red | John |
Red | Bill |
Red | Bill |
Yellow | John |
Yellow | John |
Green | John |
Green | John |
Green | Sally |
Green | Bill |
Blue | Sally |
Blue | Bill |
I'd like to create a donut chart where the outer slices represent the frequencies of the colors.
The inner donut should show the frequencies of the people within each color.
I've tried the Donut graph using Proc Gchart with color as the main variable and with subgroup=person, but that created a lot of concentric circles. Any idea how I would set things up so there are only two rings?
I think this sample is like your question 25522 - Subgroup a donut or pie chart using PROC GCHART
I am convinced Eguide should do the job also but the naming and word can be misleading for first time use.
You have used the "BY" statement this statement is commonly used for processing large datasets and wanting to split up the logical process/report as it where segregated datasets. By that able generating a flood of them.
Your question seems to me about grouping the data.
tried Eguide?
Yes, this is using EG.
Use the EG approach selecting the the options/sample you are liking ... mouse klik-klik and you can view the generated code.
No need to invent that by yourself. And when ready you can still pick up the gplot code.
That would be ideal. Unfortunately, my version of the EG doesn't do multi tiered pies. So, I used custom code from it.
As per the original message - when I used those options with the pie graph, I got many consecutive circles.
I think this sample is like your question 25522 - Subgroup a donut or pie chart using PROC GCHART
I am convinced Eguide should do the job also but the naming and word can be misleading for first time use.
You have used the "BY" statement this statement is commonly used for processing large datasets and wanting to split up the logical process/report as it where segregated datasets. By that able generating a flood of them.
Your question seems to me about grouping the data.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.