Axis Attributes

In this section:

Depending on the graph type, the graph may include one or two ordinal axes (O1 and O2) and multiple numeric axes (X1, Y1, Y2, Y3, Y4, Y5). The following illustration shows a graph with one ordinal axis (O1) and two numeric axes (Y1 and Y2). Note that the secondary ordinal axis (O2) only appears in 3D graphs.

3D graph

See Time Scale Axis Graphs for information about how to set up a time scale axis.


Top of page

x
Axis Properties

This table shows the default values for properties that affect the axes and their grid lines, labels, titles, and so on. Blank cells indicate the property is not supported or applicable for the axis.

Property

O1 Axis

O2 Axis (see note)

X1 Axis

Y1 Axis

Y2 Axis

AxisDescending

 

 

false

false

false

AxisLineDisplay

true

 

true

true

true

AxisSide

0

 

0

see note

see note

ExcludeMaxLabel

false

false

false

false

false

ExcludeMinLabel

false

false

false

false

false

LabelAutofit

true

true

true

false

true

LabelAutoskip

0

 

 

 

 

LabelDisplay

true

true

true

true

true

LabelFormat

 

 

0

0

0

LabelFormatPattern

 

 

"#.#"

"#.#"

"#.#"

LabelMargin

0

 

 

 

 

LabelRotate

0

0

0

0

0

LabelSkipBegin

0

 

 

 

 

LabelSkipCount

0

 

 

 

 

LabelStagger

false

 

false

false

false

LogScale

 

 

false

false

false

LabelWrap

false

false

 

 

 

MajorGridDisplay

true

*

true

true

true

MajorGridStep

 

 

10.0

10.0

10.0

MajorGridStepAuto

 

 

true

true

true

MajorGridStyle

0

 

0

0

0

MinorGridCount

1

 

 

 

 

MinorGridDisplay

false

 

false

false

false

MinorGridStep

 

 

10.0

10.0

10.0

MinorGridStepAuto

 

 

true

true

true

MinorGridStyle

0

 

0

0

0

MustIncludeZero

 

 

false

false

false

OffScaleDisplay

 

 

true

true

true

ScaleMax

 

 

100.0

70.0

80.0

ScaleMaxAuto

 

 

true

true

true

ScaleMin

 

 

0.0

0.0

0.0

ScaleMinAuto

 

 

true

true

true

TitleAutofit

true

true

true

true

true

TitleDisplay

false

false

false

false

false

TitleString

Null String

Null String

Null String

Null String

Null String

ZeroLineDisplay

 

 

false

false

false

Note:



x
Ordinal Axis Properties

Use these properties to define how ordinal axes are imaged in a graph:

See Grid Lines and Labels and Titles for additional information about how to control the display of labels and titles on an ordinal axis.


Top of page

x
Ordinal Axis Methods

Use these methods to determine if the graph includes the primary or secondary ordinal axis:

These properties indicate whether or not the axis is present regardless of whether or not the axis base line is enabled for display. The primary ordinal axis is present in most graph types. The secondary ordinal axis is only present in 3D graph types.


Top of page

x
Numeric Axis Properties

Use these properties to define how numeric axes are imaged in the graph:

See Labels and Titles for additional information about how to control the display of labels and titles on a numeric axis.


Top of page

x
Numeric Axis Methods

Use these methods to get information about specific numeric axes in a graph:

These methods indicate whether or not the axis is present regardless of whether or not the axis base line is enabled for display. The X1-axis is present in scatter graphs, bubble graphs, histograms, and so on. The Y1-axis is present in most graph types. The Y2-axis is only present in dual-axes graphs.


Top of page

x
Axis Independent Methods

In addition to the axis-specific properties and methods, you can use these methods to get/set axis attributes.

When you use these methods, you may supply the object ID of an axis as an input parameter to identify the axis where the attribute is applied. If an axis is not specified, the attribute is retrieved from or assigned to the first item in the selection list. If the object ID does not identify an axis or the first item in the selection list is not an axis, a set operation will apply the attribute to the object but it will not affect the appearance of the graph.


Top of page

x
Tick Mark Properties and Methods

Tick marks can be enabled on any axis independent of grid lines.

The following properties control drawing of tick marks on the primary ordinal axis:

IgnoreTickSkip
O1MajorTickDisplay
O1MajorTickStyle
O1MinorTickCount
O1MinorTickDisplay
O1MinorTickStyle

The following properties control drawing of independent tick marks on a numeric axis:

X1/Y1/Y2MajorTickDisplay
X1/Y1/Y2MajorTickStep
X1/Y1/Y2MajorTickStepAuto
X1/Y1/Y2MajorTickStyle
X1/Y1/Y2MinorTickDisplay
X1/Y1/Y2MinorTickStep
X1/Y1/Y2MinorTickStepAuto
X1/Y1/Y2MinorTickStyle

Note that tick marks can be drawn on Y3-, Y4-, and Y5-axes using the methods listed below.

The following methods can be used to enable and control the appearance of independent tick marks on O1-, X1- and all Y-axes:

When these methods are used, the object ID of tick marks may be supplied as an input parameter to identify the axis tick marks to which the attribute is applied. If a tick mark object is not specified, the attribute is retrieved from or assigned to the first item in the selection list. If the object ID does not identify a tick mark object or the first item in the selection list is not a tick mark object, a "set" operation will apply the attribute to the object but it will not have any effect on the appearance of the chart.


Top of page

x
Properties for Dual Axes Graphs

These properties control the axes in dual-axes graphs:


Top of page

x
Autofitting Axis Text

Use these properties to define how axis text is autofitted:


WebFOCUS