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/ 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.
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.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.