Axis Label
The
AxisLabel node controls the labeling of an axis. The drawing of this node is controlled by the
text attributes..
Scientific Notation
If the values along an axis are large, scientific notation is more readable than a decimal format with many zeros. See
DecimalFormat for details on number formatting patterns.
Date Labels
If the
TextFormat attribute for an axis is an instance of
DateFormat, then the axis is scaled and labeled as a date/time axis, instead of as a real axis.
Date information passed to the
Date constructor must be a
double number representing the number of milliseconds since the standard base time known as “the epoch”, namely January 1, 1970, 00:00:00 GMT. This is used by the constructor for
Date.
String Labels
Any array of strings can be used to label the tick marks using the
setLabels(String[]) method. The
setLabels(String[]) method sets the
Number attribute to the number of strings.
Axis Title
The
AxisTitle node controls the titling of an axis. The drawing of this node is controlled by the
text attributes.Axes are titled with the value of the Title attribute in the AxisTitle node. By default, the titles are “X”, “Y” or “Z”.
Attribute AxisTitlePosition
This AxisTitlePosition controls the location of the axis title. Its value is one of the following:
AXIS_TITLE_AT_END positions the axis title at the end of the axis. When the chart is rotated the axis title text always faces the viewer.
AXIS_TITLE_PARALLEL positions the axis title parallel to the axis. When the chart is rotated the axis title stays parallel to the axis.