Axis.property
(DataWindow object)
Description
Settings that control the appearance of an axis on a graph.
Applies to
Graph controls
Syntax
PowerBuilder dot notation:
|
1 |
dw_control.Object.graphname.axis.property |
Describe and Modify argument:
|
1 |
"graphname.axis.property { = value }" |
|
Parameter |
Description |
|---|---|
|
graphname |
The name of the graph within the DataWindow object |
|
axis |
An axis name. Values
|
|
property |
A property for the axis. Properties and their |
|
value |
The value to be assigned to the property. For axis |
|
Property for Axis |
Value |
|---|---|
|
AutoScale |
(exp) A boolean number specifying whether Values 0 — No, do not automatically scale the 1 — Yes, automatically scale the Painter: Axis tab, Scale group. |
|
DispAttr. fontproperty |
(exp) Properties that control the appearance of the For a list of Painter: Text tab. Choose |
|
DisplayEveryNLabels |
(exp) An integer specifying which major axis Painter: Axis |
|
DropLines |
(exp) An integer indicating the type of drop line Values are: 0 — 1 — Solid 2 — Dash 3 4 — DashDot 5 — Painter: Axis tab, Major Divisions group Not supported |
|
Frame |
(exp) An integer indicating the type of line used Painter: Axis tab, Line Style Not supported by Render3D graph |
|
Label |
(exp) A string whose value is the axis Painter: Axis tab. |
|
LabelDispAttr. fontproperty |
(exp) Properties that control the appearance of the For a list of font properties, see the Painter: Text |
|
MajorDivisions |
(exp) An integer specifying the number of major Painter: Axis tab, Major |
|
MajorGridLine |
(exp) An integer specifying the type of line for Painter: Axis tab, Major Divisions Not supported by Render3D graph |
|
MajorTic |
(exp) An integer specifying the type of the major Values are: 1 — 2 — Inside 3 — 4 — Straddle Painter: Axis tab, Not supported by Render3D |
|
MaximumValue |
(exp) A double specifying the maximum value for the Painter: Axis tab, Scale group. |
|
MinimumValue |
(exp) A double specifying the minimum value for the Painter: Axis tab, Scale group. |
|
MinorDivisions |
(exp) An integer specifying the number of minor Painter: Axis tab, Minor Not supported by Render3D graph |
|
MinorGridLine |
(exp) An integer specifying the type of line for Painter: Axis tab, Minor Divisions Not supported by Render3D graph |
|
MinorTic |
(exp) An integer specifying the type of the minor Values are: 1 — 2 — Inside 3 — 4 — Straddle Painter: Axis tab, Not supported by Render3D |
|
OriginLine |
(exp) An integer specifying the type of origin line Painter: Axis tab, Line Style Not supported by Render3D graph |
|
PrimaryLine |
(exp) An integer specifying the type of primary Painter: Axis tab, Line Style Not supported by Render3D graph |
|
RoundTo |
(exp) A double specifying the value to which you Painter: Axis tab, Scale |
|
RoundToUnit |
(exp) An integer specifying the units for the Values are: 0 — Default, for 1 — Years, for an axis of 2 — Months, for an axis of 3 — Days, for an axis of type 4 — Hours, for an axis of type 5 — Minutes, for an axis of type 6 — Seconds, for an axis of type 7 — Microseconds, for an axis of Painter: Axis tab, Scale |
|
ScaleType |
(exp) An integer specifying the type of scale used Values are: 1 — 2 — Scale_Log10 3 — Painter: Axis tab, Scale |
|
ScaleValue |
(exp) An integer specifying the scale of values on Values are: 1 — 2 — Scale_Cumulative 3 — 4 — Painter: Axis tab, Scale |
|
SecondaryLine |
(exp) An integer specifying the type of secondary Painter: Axis tab, Line Style Not supported by Render3D graph |
|
ShadeBackEdge |
(exp) A boolean number specifying whether the back Values 0 — No, the back edge is not 1 — Yes, the back edge is Painter: Axis tab. Enabled for 3D graphs Not supported by Render3D graph |
|
Sort |
(exp) An integer specifying the way the axis values Values are: 0 — 1 — Ascending 2 — Painter: Axis tab, Line Style |
Usage
In the painter
Select the graph control or the Graph DataWindow object and set
the value in the Properties view. To set most axis properties, select
the Axis tab and an axis in the Axis drop-down list. Font properties are
set on the Text tab.
Examples
|
1 2 3 4 5 6 7 |
string ls_data ls_data = dw1.Object.gr_1.Category.AutoScale dw1.Object.Category.LabelDispAttr.Alignment = 2 ls_data = dw1.Describe("gr_1.Category.AutoScale") dw1.Modify("gr_1.Series.AutoScale=0") dw1.Modify("gr_1.Values.Label='Cities'") dw1.Modify("gr_1.Category.LabelDispAttr.Alignment=2") |