Procedure features: |
PIE
statement options:
|
MIDPOINTS= |
|
PERCENT=ARROW |
|
SLICE=ARROW |
|
VALUE=NONE | |
|
Other features: |
GOPTIONS Statement option:
|
|
Sample library
member: |
GCHLABEL
|
This
example produces a pie chart of the types of vehicles
produced worldwide. The labeled slices represent the percent of total production
for each source. Instead of the sum statistic, each slice displays the percent
each midpoint contributes to the whole pie. Arrows connect the midpoint labels
to the slices, which are arranged by the MIDPOINTS= option so that similar
types of vehicles are shown next to each other in the pie chart.
|
goptions reset=all border; |
|
title "Types of Vehicles Produced Worldwide";
footnote j=r "GCHLABEL"; |
|
proc gchart data=sashelp.cars;
pie type / other=0
midpoints="Truck" "SUV" "Sedan" "Wagon" "Sports" "Hybrid"
value=none
percent=arrow
slice=arrow
noheading;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.