Chapter Contents

Previous

Next
The CHART Procedure

Example 5: Producing a Horizontal Bar Chart for a Subset of the Data


Procedure features:
HBAR statement options:
GROUP=
SUMVAR=
Other features:
WHERE= data set option
Data set: PIESALES

This example


Program

options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
proc chart data=piesales(where=(year=1995));
 Note about code
   hbar bakery / group=flavor


 Note about code
   sumvar=pies_sold;
   title '1995 Pie Sales for Each Bakery According to Flavor';
run;


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.