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. 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1158 views
  • 0 likes
  • 2 in conversation