<dvt:o1Axis>

o1Axis o1 axis


Use the o1Axis tag to control the color and visibility of the ordinal axis.

The ordinal (or category) axis of a graph shows ordered data, such as ratings or stages, or nominal data, such as different cities or different products. On a vertical bar graph, for example, the ordinal axis is the horizontal line across the bottom of the plot area. The values along the ordinal axis do not identify the extent of the data shown. Instead, the values identify the different groups in which the data belongs.

The ordinal axis appears on bar, line, area, combination, radar, and three-dimensional graphs. As with data axes, the ordinal axis has tick marks that locate the different items in the series, and it has tick labels that identify the different series items.

Relationship with other tags

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

Example

The following example shows the XML for a o1Axis tag.

   <dvt:graph> 
      <dvt:o1Axis lineWidth="1" lineColor="#000000"/>
   </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 in RGB hexadecimal. The example color="#000000" specifies black. 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.
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, and Area 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.