BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

Hi,

1/ Is there any option to change the color of arrows on pie chart?

2/ Why 'arrows' are automatically preferred to 'inside' when using clockwise? Is there a way to keep values inside and still use clockwise?

Regards,

 

data chk;
   chkcat=1; chkno=11; cnt=10; output;
   chkcat=1; chkno=12; cnt=30; output;
   chkcat=2; chkno=21; cnt=12; output;
   chkcat=2; chkno=22; cnt=5;  output;
   chkcat=2; chkno=23; cnt=17; output;
   chkcat=3; chkno=31; cnt=6;  output;
   chkcat=4; chkno=41; cnt=8;  output;
   chkcat=4; chkno=42; cnt=12; output;
run;



proc gchart data=chk;
    pie chkcat / clockwise
                 sumvar=cnt

                 slice=none 
                 percent=none 
	         value=none 

		 detail=chkno
		 detail_slice=none 
		 detail_percent=none 
		 detail_value=best 

		 discrete;
run;
quit;

 

1 ACCEPTED SOLUTION

Accepted Solutions
pink_poodle
Barite | Level 11

1/ Yes, the option is plabel = ( color = ... ). You can see it in action in Sample 40176 here:

 

SAS Pie Chart Gallery with Code Samples

 

2/ You probably want something like Sample 25519. For that, you would need to define a legend. 

View solution in original post

1 REPLY 1
pink_poodle
Barite | Level 11

1/ Yes, the option is plabel = ( color = ... ). You can see it in action in Sample 40176 here:

 

SAS Pie Chart Gallery with Code Samples

 

2/ You probably want something like Sample 25519. For that, you would need to define a legend. 

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
  • 1 reply
  • 676 views
  • 0 likes
  • 2 in conversation