Classification
panels use the ROWAXISOPTS=(
axis-opts) and COLUMNAXISOPTS= (
axis-opts) options to set axis features. Options are available for all four
axis types (LINEAR, DISCRETE, LOG, and TIME), and most of the available
axis options are a slightly restricted set of the axis options that
are available in an OVERLAY layout.
To demonstrate
the use of axis options, the following example suppresses the row
axis label because the tick values are formatted with the DOLLAR format
and the axis label is therefore not needed. The column axis label
is suppressed because the panel's title indicates what the bars represent.
Adding title information and eliminating axis labels is a good way
to make more space available to the panel's grid. Axis ticks on a
discrete axis (YEAR) are often not needed, so the example suppresses
them. It also turns on grid lines to make comparisons easier.
You have
probably noticed in the examples with bar charts that the bars do
not touch the axis. This happens because a default minimum axis offset
is applied to the axis to avoid possible tick value collision with
an adjacent cell. This example overrides the default offset by setting
OFFSETMIN=0, thus enabling the bars to touch the horizontal axis.
layout datapanel classvars=(product_group) /
rowdatarange=union
columnaxisopts=(display=(tickvalues))
rowaxisopts= (display=(tickvalues)
linearopts=(tickvalueformat=dollar12.)
griddisplay=on offsetmin=0) ;
Any DATAPANEL
display that uses one or two classifiers can be converted to a DATALATTICE
display. When the ROWVAR= option is used on the LAYOUT DATALATTICE
statement, the cell headers automatically become row headers. When
the COLVAR= option is used, cell headers automatically become column
headers. On the following LAYOUT DATALATTICE statement, the ROWVAR=
option is used, and the values of the classifier are displayed as
row headers:
layout datalattice rowvar=product_group /
rowdatarange=union
rowgutter=5px
columnaxisopts=(display=(tickvalues))
rowaxisopts =(display=(tickvalues)
linearopts= (tickvalueformat=dollar12.)
griddisplay=on offsetmin=0);