Procedure features: |
PIE
statement options:
|
ACROSS= |
|
CLOCKWISE |
|
GROUP= |
|
OTHER= |
|
PERCENT=OUTSIDE |
|
SLICE=OUTSIDE | |
|
Other features: |
GOPTIONS statement option:
|
|
Sample library member: |
GCHPIGRP
|
This
example produces two pie charts that show the production
of trucks worldwide. Both charts are displayed on one page and are arranged
two across. The program uses the CLOCKWISE option to arrange the slices, which
begin at the 12 o'clock position and proceed clockwise in alphabetic order
of the midpoint.
The chart statistic is suppressed and the midpoint label
and the percent of the chart statistic are displayed outside of the slice.
|
goptions reset=all border; |
|
title "Types of Trucks Produced Worldwide";
footnote j=r "GCHPIGRP"; |
|
proc gchart data=sashelp.cars(where=(type="SUV" or type="Truck"));
pie make / group=type
across=2
other=5 otherlabel="Other Makes"
clockwise value=none
slice=outside percent=outside;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.