<dvt:y2Axis>

y2Axis y2 axis


Use the y2Axis tag to control the characteristics and scaling of the y2-axis.

Relationship with other tags

This component must be a child of one of the following components:

Note that use of y2Axis's <dvt:numberFormat> tag has been deprecated. Users are recommended to use the y2TickLabel's <af:convertNumber> tag instead:

Example

The following example shows how to configure a y2Axis tag :

   <dvt:graph> 
      <dvt:y2Axis lineWidth="1" lineColor="#00000" scaledLogarithmic="false" 
                     logarithmicBase="10.0" axisMinAutoScaled="true" axisMinValue="0.0" 
                     axisMaxAutoScaled="true" axisMaxValue="60.0" majorIncrement="10.0" 
                     minorIncrement="5.0" scrolling="on"/> 
       </dvt:y2Axis> 
   </dvt:graph>

Attributes

Name Type Supports EL? Description
id java.lang.String no Specifies the identifier for the component
lineColor java.lang.String yes Specifies the color of the axis line. Enter values in RGB hexadecimal. The example color="#000000" specifies black line. This color property takes 6 or 8 digit hex as input. When 8 digit hex is used, the first 2 digits represent transparency, otherwise the color is opaque.
lineWidth int yes Specifies the width of the axis line in pixels. The width is 1 pixel by default.
logarithmicBase double yes Specifies the base for the log scale on this axis, applies only when scaledLogarithmic is "true".
majorIncrement double yes The distance between two major tick marks. If less than or equal to 0 major increments will not be shown. The major tick are the ones that will display a labeled value underneath the tick mark. Setting this attribute will apply majorTickStepAutomatic to false.
Note: The number of major tick marks is limited to 100 in the visible plot area.
minorIncrement double yes The distance between two minor tick marks. If less than or equal to 0 minor increments will not be shown. The minor tick are the ones that will not show a label underneath the tick mark. By default, y2MinorTick tickStyle is none. User needs to modify this attribute to see the minor tick marks.
Note: The number of minor tick marks is limited to 500 in the visible plot area.
majorTickStep double yes Deprecated. Replaced by majorIncrememt. The increment between tick marks. This setting applies only if the majorTickStepAutomatic attribute is set to "false".
axisMaxValue double yes Specifies the maximum value to appear on the axis. This setting applies only when axisMaxAutoScaled is "false".
axisMinValue double yes Specifies the minimum value to appear on the axis. This setting applies only when axisMinAutoScaled is "false".
axisMaxAutoScaled boolean yes Specifies whether the maximum value of the axis is set automatically by the graph. Valid values are "true" (Default) and "false".
axisMinAutoScaled boolean yes Indicates whether the minimum value of the axis is set automatically by the graph. Valid values are "true" (Default) and "false".
majorTickStepAutomatic boolean yes Deprecated. Indicates whether major tick mark values on this axis are set automatically. Valid values are "true" (Default) and "false"
scaledLogarithmic boolean yes Specifies whether the axis uses a log scale. Valid values are "true" and "false" (Default).
rendered boolean yes Indicates whether the axis line is rendered. Valid values are "true" (Default) and "false".
scrolling boolean yes Specifies the axis scrolling behavior. Supported for Bar, Line, Area, Scatter, and Bubble graphs only. Valid values are:
  • on - Scrolling is enabled and scroll bar is always present.
  • off - (Default) Scrolling is disabled.
  • asNeeded - Scrolling is enabled, but scrollbar is not present initially with no space reserved. After zooming, the scrollbar becomes visible and it stays there for the session.
  • hidden - Scrolling is enabled but scroll bar is always hidden. User may use pan scrolling.