Linear axes use special
techniques that provide the generation of "good" tick values that
are based on the data range. If a tick value format is not specified,
the column formats provide a "hint" on how to represent the tick values,
but those formats do not generally control the representation or precision
of the tick values.
To force a given format
to be used for a linear axis, you can use syntax similar to the following,
where you specify any SAS numeric format:
linearopts=(tickvalueFormat= best6. )
If you simply want the
column format of the input data column to be directly used, specify
the following:
linearopts=(tickvalueFormat=data)
There are special options to control
tick values. INTEGER=TRUE calculates good integers to use as tick
values given the range of the data. EXTRACTSCALE=TRUE can be used
to extract some factor of ten from all tick values in order to reduce
the overall width of the tick values and improve legibility. The extracted
factor is concatenated to the existing axis label. In the following
example, a factor of 1000000 (million) is extracted from the Y-axis
values and the text (million) is appended to the axis label.
layout overlay / xaxisopts=(linearopts=(integer=true))
yaxisopts=(linearopts=(tickvalueFormat= (extractScale=true) ));
seriesplot x=Hours y=Bacteria;
endlayout;