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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.