Hey guys I am trying to do a Pie figure with SAS on demand. How do I get a pie with the right color? I mean, a pie showing the green, when the color of my category variable is green, red when the color is red, etc. I have tried the code below, but it doesn´t work. Thank you in advance for your help 🙂 /*Pie chart*/ Data mydata; Input Color $ Quantity; Datalines; Red 10 Yellow 40 Green 50 ; run; title1'colors of my pie'; pattern1 color=red; pattern2 color=yellow; pattern3 color=green; title1 'My pie'; proc gchart data=mydata; pie color/ type=sum sumvar=Quantity noheader slice=outside value=inside; run;
... View more