#set TITLE = "stack prefab"
#include top

.SH EXAMPLE 1
.LP
.ig >>
<center><table cellpadding=2><tr>
<td><img src="../prefabs/stack1.gif"></td></tr>
</table></center>
.>>
.LP
.nf
   pl -prefab stack data=data10 x=1 y=2 y2=4 y3=6 y4=8 xlbl=Months \\
    name="Group A" name2="Group B" name3="Group C" name4="Group D"

   data10 file:
	0	100	2	100	4	100	3	100	4
	1.5	92	4	94	7	87	6	86	5
	3	89	4	92	8	78	6	74	4
	..etc.



.fi

.LP
#set FILE = "prefabs.html#examples"
#set TAG = "How to run these examples"
#include link

#include space

.SH DESCRIPTION
\fCstack\fR is a 
#set FILE = "prefabs.html"
#set TAG = prefab
#include link
for producing stacked bar graphs with
one to four levels of stacking.
Based on 
#set FILE = "bars.html"
#set TAG = "proc bars"
#include link
\0.

#include space

.SH PARAMETERS
.IP
#set FILE = "prefabs.html#std"
#set TAG = "standard prefab parameters"
#include link
are all supported except \fBerr\fR.  \fBdata\fR, \fBx\fR and \fBy\fR are required.
\fBy\fR values should be numeric and will determine the height of bars.
\fBx\fR values determine bar locations; 
by default they are assumed to be categories, but thay can be continuous numeric values
if \fBxnumeric\fR is specified.

.br
.br
.IP
\fBname\fR is a short description for the first level, for
inclusion in a legend.

.br
.br
.IP
\fBy2\fR, \fBname2\fR, \fBcolor2\fR
may be specified for a second level.

.br
.br
.IP
\fBy3\fR, \fBname3\fR, \fBcolor3\fR
may be specified for a third level.
.br
.br
.IP
\fBy4\fR, \fBname4\fR, \fBcolor4\fR
may be specified for a fourth level.
.br
.br
.IP
\fBxnumeric\fR may be specified as \fCyes\fR to signify that X values
are numeric and not categories.
.br
.br
.IP
\fBlegend\fR controls the
#set FILE = "attributetypes.html#xy"
#set TAG = "location"
#include link
of the legend.  Example: \fC"legend=1 0.5"\fR   



#include bottom
