CHART Expression (XGRAPH command)
The chart expression defines the data and the role of that data in the chart. It also
specifies the data element type and any clustering and stacking.
For clustered and stacked charts, the chart expression specifies whether
color or patterns are used to distinguish the clustered and stacked
groups. For charts of individual cases (that is, when $CASENUM
defines a categorical axis), the
chart expression can also specify a label variable.
- The
CHART
keyword is optional. If it is used, it must be followed by an equals sign (=). - The order within the chart expression matters. The
yvars
(the y dimension) must be first, followed byxvars
and thenzvars
. - The final
BY
variable is used as the splitter variable in a population pyramid when theCOORDINATE
subcommand specifiesSPLIT
. - There is a limit to the number of stack and cluster specifications. There can be two clusters, or one stack and one cluster.