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.
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.
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.