Chapter Contents

Previous

Next
The GCHART Procedure

Example 13: Specifying the Sum Statistic in a Star Chart


Procedure features:
STAR statement options:
SUMVAR=
Other features: FORMAT statement
Data set: TOTALS
Sample library member: GR13N013

[IMAGE]

This example produces a star chart of total sales for three sites by charting the values of the character variable SITE and calculating the sum of the variable SALES for each site. It represents the statistics as slices of the star. The center of the circle represents 0 and the edge of the circle represents the largest value, in this case Paris sales. By default, the spines are joined and filled with a solid pattern to form slices, and the midpoint value and the formatted values of the sales statistics are printed beside each slice.

By default, the circle and the slice outlines use the first color in the colors list, in this case, BLUE.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct border cback=white
         colors=(blue green red) ctext=black
         ftitle=swissb ftext=swiss htitle=6 htext=4;
 Note about code
title 'Total Sales';
footnote h=3 j=r 'GR13N13 ';
 Note about code
proc gchart data=reflib.totals;
   format sales dollar8.;
   star site  / sumvar=sales;
run;
quit;


Chapter Contents

Previous

Next

Top of Page

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