Value-axes attribute of a trend chart determines how the vertical axes of a chart appear and behave. The value axes of a trend chart are:
![]() |
You can access value axes from:
value axes choice from the trend chart item menu
subtables choice of the Value-axes attribute on the trend chart attribute table
Value-axis-name-or-number attribute on a plot subtable
![]() |
Displaying the Value Axis
The Value-axis-visible? attribute determines whether the value axis is displayed on the trend chart. This attribute is not on the value axis defaults subtable. Specifying the Value Range
The Range-mode attribute specifies how G2 adjusts the value axis in response to plotting values outside of the current range of this value axis. The range of the value axis increases by the amount specified in the Range-slack-percentage attribute.
fixed
autoranging on data window (the default)
autoranging on all past values
Specifying
fixed in this attribute and not setting the Range-bounds attribute accordingly causes G2 to use the attribute default, autoranging on data window. Specifying Range Limits
The Range-bounds attribute specifies the numerical bounds for a value axis as a from-to value, for instance 0 to 100. These bounds are used in conjunction with the Range-mode attribute as follows. Range-mode is fixed, the trend chart uses the Range-bounds exactly as you specify them.Range-mode is set to either of the autoranging modes, G2 uses the Range-bounds that you specify as a starting point for the value axis bounds. If the minimum or maximum plot data values exceed the specified Range-bounds, the bounds are adjusted automatically to accommodate the values.
Note: The value bounds cannot exceed ± 1.7978e304, and will be truncated to this limit.
Defining the Range Slack Percentage
The Range-slack-percentage attribute defines the percentage G2 increases the Range-mode value of the value axis in response to plotting a point that is not currently in range. This attribute is applicable only when the Range-mode attribute is set to either of the autoranging modes, described in Specifying the Value Range.
Specifying the Label Frequency
The Label-frequency attribute specifies the number of labels that are displayed on the value axis and where those labels will appear. automatic directs G2 to provide an appropriate number of value labels based on the space available on the trend chart. G2 automatically computes which values to label, based on the plot values. 10 labels), or a label at specific intervals (every 10), optionally starting at a particular number (every 10 beginning at 20). If no beginning is specified, 0 is assumed.Grid-lines-visible? attribute for the value axis is set to yes, each label is aligned on the grid line. If the value range is very large, it is possible for there to be too many grid lines to accommodate labels. Label-frequency as every 10 and the Range-bounds are from 0 to 10,000, the range exceeds the number of labels that can be displayed legibly. Notes attribute, as shown in this diagram.
![]() |
Displaying Labels as Percentages
The Show-labels-as-percent? attribute changes the value axis labels to show the values as a percentage of the entire range of the value axis range. Specifying the Significant Digits for Labels
The Significant-digits-for-labels attribute specifies the number of significant digits. The default 4 accommodates numbers up to 99.99 and numbers down to, and including, 0.01. 1.0e2 for 100 when 4 is the value for this attribute. Showing Grid Lines
The Grid-lines-visible? attribute determines whether grid lines are displayed for the value axis.
Adding Extra Grid Lines
The Extra-grid-lines attribute specifies:
at 100, at 200, at 300 in blue
Grid-lines-visible? attribute is set to no.
Baseline-visible? attribute determines whether the baseline for the value axis is displayed. Set the attribute to yes to display the baseline, which is a vertical line that displays to the left or the right of the value axis, depending on which side of the trend chart the axis is displaying.
Baseline-color attribute determines the color of the value axis baseline. The value axis baseline must be set to yes for this attribute to have any effect.