## stack prefab

Version 2.32
Prefabs

Manual page for stack_prefab(PL)

View the examples

`stack` is a prefab for producing stacked bar graphs and stacked area plots with one to four levels of stacking.`` The data must be organized such that all segments of a bar are in the same data row.`` Note: the chron prefab should be used to do stacked bar graphs with a chronological X axis.``

## Parameters

Prefab parameter name | Data type | Default | Description | Examples (ignore line wrapping)
Standard parameters |  |  | Most of the standard prefab parameters may be used. You must specify data (the name of the input data file). The clickmap parameters and ptselect aren't available with this prefab.
x | data field | must be specified | Identifies the data field that will hold X component. By default these are assumed to be categories, but thay can be continuous numeric values if the xnumeric parameter is specified. | `x=2 x=pmb`
y y2 y3 y4 | data field | y must be specified | Identifies the data fields that will hold stackable numeric Y components. | `y=2 y=pmb y2=pmc`
stackarea | `yes` or `no` | `no` | Do a stacked area plot rather than a stacked bar plot (see examples). | `stackarea=yes`
xnumeric | `yes` or `no` | `no` | If `yes`, signifies that X values are numeric rather than categories. | `xnumeric=yes`
color color2 color3 color4 | color | `orange powderblue dullyellow drabgreen` | Color(s) of stacked bars or stacked areas. | `color=red color2=orange`
outline | `yes` or `linedetails` |  | Outline the bars. Applies to all levels. | `outline=yes`
reverseleg | `yes` or `no` | `no` | If `yes`, list legend entries in reverse order. | `reverseleg=yes`

data display engine
Copyright Steve Grubb

Markup created by unroff 1.0, `` `` August 23, 2005.