- Syntax
- Overview
- Concepts
- Examples Specifying the Sum Statistic in a Block ChartGrouping and Subgrouping a Block ChartSpecifying the Sum Statistic in Bar ChartsSubgrouping a Three-Dimensional Vertical Bar ChartControlling Midpoints and Statistics in a Horizontal Bar ChartGenerating Error Bars in a Horizontal Bar ChartSpecifying the Sum Statistic for a Pie ChartSubgrouping a Donut or Pie ChartOrdering and Labeling Slices in a Pie ChartGrouping and Arranging Pie ChartsSpecifying the Sum Statistic in a Star ChartCharting a Discrete Numeric Variable in a Star ChartCreating a Detail Pie Chart
- References

The chart
variable is the variable in the input data set whose
values determine the categories of data represented by the bars, blocks,
slices, or spines. The chart variable generates the midpoints to
which each observation in the data set contributes.

The chart variable can
be either character or numeric. Character chart variables contain
character values, which are always discrete. Numeric chart variables
fall into two categories: discrete and continuous.

Note: You can apply a format that
converts multiple values or a range of values to a single formatted
value. In this case the GCHART procedure produces a single midpoint
for that single formatted value.

By default, the GCHART procedure ignores missing midpoint
values for the chart variable. If you specify the MISSING option,
then missing values are treated as a valid midpoint and are included
on the chart. Missing values for the group and subgroup variables
are always treated as valid groups and subgroups.