Is the pie really round?
Commonly the PIE statement in the PROC GCHART produces the pie charts. Given the shortcoming of the pixel based Gxxxxxx procedures, the boundary of the pie is not very clear. I always feel that the resulting pie is not 100% round. Let's see one example with a dataset from SAS's online document
/* Set the graphics environment */
/* Create the input data set SALES */
input site $ 1-8 count;
New York 307
/* Produce the chart */
proc gchart data=sales;
pie site / sumvar=count slice = inside value = none noheading;
My intuition is that the pie above has bumps on the boundary areas. In SAS, the SVG
-based SG procedures can be a rescue. However, right now they don't include an option of the PIE chart (because a pie chart is not a statistical graph?)An alternative solutionD3.js
In this example, I switch to a plug-in
of D3 to draw the pie again. This time I finally obtain a really round pie.