How to create a two tiered pie or dognut graph?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

How to create a two tiered pie or dognut graph?

We have the following data:

ColorPerson
RedJohn
RedBill
RedBill
YellowJohn
YellowJohn
GreenJohn
GreenJohn
GreenSally
GreenBill
Blue

Sally

BlueBill

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?


Accepted Solutions
Solution
‎11-10-2013 07:33 AM
Trusted Advisor
Posts: 3,215

Re: How to create a two tiered pie or dognut graph?

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. 

---->-- ja karman --<-----

View solution in original post


All Replies
Trusted Advisor
Posts: 3,215

Re: How to create a two tiered pie or dognut graph?

tried Eguide?

---->-- ja karman --<-----
Occasional Contributor
Posts: 6

Re: How to create a two tiered pie or dognut graph?

Yes, this is using EG. 

Trusted Advisor
Posts: 3,215

Re: How to create a two tiered pie or dognut graph?

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.

---->-- ja karman --<-----
Occasional Contributor
Posts: 6

Re: How to create a two tiered pie or dognut graph?

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.

Solution
‎11-10-2013 07:33 AM
Trusted Advisor
Posts: 3,215

Re: How to create a two tiered pie or dognut graph?

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. 

---->-- ja karman --<-----
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 301 views
  • 0 likes
  • 2 in conversation