y2Format y2 format

Use the y2Format tag to wrap the <af:convertNumber> tag use to format the marker text associated with y2-axis values. This tag also supports attributes for scaling and automatic precision

Relationship with other tags

The y2Format tag is a child tag of the markerText tag.

The y2Format tag has the following child tags: af:convertNumber, dvt:numberFormat(deprecated) tag.

Note: The use of <dvt:numberFormat> is now replaced with <af:convertNumber> tag.


The following is an example of how to configure this <dvt:y2Format> tag:

          <dvt:barGraph value="#{binding.dataModel}">
                   <af:convertNumber pattern="#{appPrefs.markerTextPattern}" />


Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
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