The PowerBuilder class grAxis is used as part of a graph control. Each graph has three grAxis objects: Category, Series, and Values.
To refer to a property of an axis, use this syntax:
graphcontrolname.axisname.property
For example: gr_1.Series.AutoScale
A grAxis object has no events.
grAxis property |
Datatype |
Description |
---|---|---|
Boolean |
Specifies whether PowerBuilder scales the axis automatically. Values are:
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
grAxisDataType (enumerated) |
Specifies the datatype of the axis. Values are:
|
|
DispAttr |
grDispAttr (object) |
Settings that control the appearance of the text that labels the axis divisions. |
Integer |
Specifies which major axis divisions to label. For example, 2 means label every other tick mark. Use 0 to let the graph select the optimum number of labels to use. If the labels are too long, they are clipped. |
|
LineStyle (enumerated) |
Specifies the type of drop line for the axis. Values are:
|
|
LineStyle (enumerated) |
Specifies the type of line used for the frame. See DropLines in this table for the list of values. |
|
String |
Specifies the axis label. |
|
LabelDispAttr |
grDispAttr (object) |
Settings that control the appearance of the axis label text. |
Integer |
Specifies the number of major divisions on the axis. |
|
LineStyle (enumerated) |
Specifies the type of line for the major grid. See DropLines in this table for the list of values. |
|
grTicType (enumerated) |
Specifies the type of the major tick marks. Values are:
|
|
Double |
Specifies the maximum value for the axis when its datatype is numeric. |
|
DateTime |
Specifies the maximum value for the axis when its datatype is date or time. |
|
Double |
Specifies the minimum value for the axis when its datatype is numeric. |
|
Integer |
Specifies the number of minor divisions on the axis. |
|
LineStyle (enumerated) |
Specifies the type of line for the minor grid. See DropLines in this table for the list of values. |
|
grTicType (enumerated) |
Specifies the type of the minor tick marks. Values are:
|
|
DateTime |
Specifies the minimum value for the axis when its datatype is date or time. |
|
LineStyle (enumerated) |
Specifies the type of origin line for the axis. See DropLines in this table for the list of values. |
|
LineStyle (enumerated) |
Specifies the type of primary line for the axis. See DropLines in this table for the list of values. |
|
Double |
Specifies the value to which you want to round the axis values. |
|
grRoundToType (enumerated) |
Specifies the units for the rounding value. The units must be appropriate for the axis datatype. Values are listed below. For an axis of any datatype:
For an axis of any numeric datatype:
|
|
For an axis of type date or DateTime:
For an axis of type time or DateTime:
|
||
grScaleType (enumerated) |
Specifies the type of scale used for the axis. Values are:
|
|
grScaleValue (enumerated) |
Specifies the scale of values on the axis. Values are:
|
|
LineStyle (enumerated) |
Specifies the type of secondary line for the axis. See DropLines in this table for the list of values. |
|
Boolean |
Specifies whether the back edge of the axis is shaded. Values are:
|
grAxis function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the object. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
PowerObject |
Returns a reference to the name of the parent object. |
|
Object |
Returns the type of the object. |