y2TickLabel y2 tick label

Use the y2TickLabel tag to control the appearance of the y2-axis tick labels.

Relationship with other tags

The y2TickLabel tag must be a child of one of the following components: Advanced graph, dualYBarGraph, dualYComboGraph, dualYLineGraph, areaGraph, barGraph, horizontalBarGraph, lineGraph, comboGraph, and paretoGraph.

The y2TickLabel tag can have the following child tags: graphFont tag, af:convertNumber tag.


The following example shows the XML for a y2TickLabel tag that also has a graphFont child tag to cutomize the text in the label.

      <dvt:y2TickLabel textRotation="TR_HORIZ">
         <dvt:graphFont name="SansSerif" size="10" color="#000000" bold="false" italic="false" underline="false"/>


Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
textRotation java.lang.String yes Specifies the orientation of rotated text. Valid values are:
  • TR_HORIZ - Use horizontal orientation.
  • TR_HORIZ_ROTATE_90 - Use 90 degree orientation for rotated text.
  • TR_HORIZ_ROTATE_270 - Use 270 degree orientation for rotated text.
rendered boolean yes Indicates whether the Y2TickLabels are to be visible. Valid values are:
  • true - (Default) If the tick label is rendered.
  • false - If the tick label is not rendered.
scaling java.lang.String yes Scaling factor for numbers that are displayed. Valid values are:
  • auto - (Default) The number will be scaled automatically.
  • none - The number will not be scaled.
  • thousand - The number will be scaled to thousands.
  • million - The number will be scaled to millions.
  • billion - The number will be scaled to billions.
  • trillion - The number will be scaled to trillions.
  • quadrillion - The number will be scaled to quadrillions.
autoPrecision java.lang.String yes Whether to turn on the automatic precision for decimal digits. Valid values are:
  • on - (Default) The number of decimal digits are determined automatically.
  • off - The number of digits is based on the user specification from af:convertNumber