BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Abishekaa
Obsidian | Level 7

Below is a sample pie chart created in excel. Is it possible to create a similar pie in sas, with both inside & outside labels and callout lines?

Abishekaa_0-1649984416850.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Abishekaa
Obsidian | Level 7

Answering my question 🙂 Found proc gchart has this option (proc sgpie doesn't)

Example:

PROC GCHART DATA=slid; 
PIE language/ DISCRETE;
VALUE = INSIDE PERCENT = INSIDE SLICE=OUTSIDE;
RUN;

View solution in original post

2 REPLIES 2
Abishekaa
Obsidian | Level 7

Answering my question 🙂 Found proc gchart has this option (proc sgpie doesn't)

Example:

PROC GCHART DATA=slid; 
PIE language/ DISCRETE;
VALUE = INSIDE PERCENT = INSIDE SLICE=OUTSIDE;
RUN;
Ksharp
Super User
https://blogs.sas.com/content/graphicallyspeaking/2018/06/25/pie-charts-redux/
https://blogs.sas.com/content/graphicallyspeaking/2018/12/07/the-sgpie-procedure-part-2/
https://blogs.sas.com/content/graphicallyspeaking/2012/08/26/how-about-some-pie/
https://support.sas.com/kb/45/772.html




proc sgpie data=sashelp.heart;
  pie bp_status / DATALABELDISPLAY=(category PERCENT) DATALABELLOC=inside;
run;

proc sgpie data=sashelp.heart;
  pie bp_status / DATALABELDISPLAY=(category PERCENT) DATALABELLOC=CALLOUT;
run;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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