This interface provides access to the plot axes properties.
You may change axis coordinate range by using Min and Max
properties, or set AutoScale=true to calculate coordinate
range automatically so that all points will be visible.
Use other properties to show or hide appropriate axis
elements or to change their visual attributes.
| Kind | Name | ID | Description |
| Min | 1 | Change TAxis.Min | |
| Max | 2 | Change TAxis.Max | |
| Margins | 3 | Change TAxis.Margins | |
| AutoScale | 4 | Change TAxis.AutoScale | |
| Title | 5 | Change TAxis.Title | |
| Expression | 6 | Change TAxis.Expression | |
| IsVisible | 101 | Control axis visibility | |
| GridVisible | 102 | Change grid lines visibility | |
| LabelVisible | 103 | Change ticks and labels visibility | |
| MajorTicks | 104 | Change TAxis.MajorTicks | |
| MinorTicks | 105 | Change TAxis.MinorTicks | |
| TickStyle | 106 | Change ticks layout | |
| Color | -501 | Change axis color | |
| Font | -512 | Change axis labels font | |
| Format | 107 | Change labels format | |
| Document | 108 | Returns owner document object |
| property Min: Double |
For DMAxis, Min define minimal value of the axis range. Note: if you want to fix axis range you have to clear AutoScale flag. Also keep in mind that in DM2003 Min may be greater than Max.
For DMSerie, this property allows you to change minimal limit of the parameter ("cx") for parameterized (or functional) series.
For DMSpinEdit and DMFloatEdit ActiveX controls, it defines minimal possible value of the Value property.
| property Max: Double |
For DMAxis, Max defines maximal value of the axis range. Note: if you want to fix axis range you have to clear AutoScale flag. Also keep in mind that in DM2003 Min may be greater than Max.
For DMSerie, this property allows you to change maximal limit of the parameter ("cx") for parameterized (or functional) series.
For DMSpinEdit and DMFloatEdit ActiveX controls, it defines maximal possible value of the Value property.
| property Margins: Double |
Margins defines the distance between axis ranges given by Min, Max values and calculated by series data. Value of 0.1 corresponds to approximately 10% blank space. This property should be used in conjunction with AutoScale.
| property AutoScale: Boolean |
If this flag set to true, every time when plot will be repainted new axis range will be automatically calculated. All nonempty series take part in autoscaling.
| property Title: BSTR |
Axis may have a title. If this property is not empty, axis title will be visible. Note that not all fonts are displayed properly in the vertical direction!
| property Expression: BSTR |
For DM2003 plot axis, you may transform all series simultaneously
if you assign valid expression to this property.
See details about expression
syntax and allowed arguments and function names.
For DMFitter ActiveX control, Expression property should be defined before you
start fitting. There are several possible situations:
| property IsVisible: Boolean |
IsVisible property determines whether appropriate object is visible on the screen. Note that for ActiveX controls embedded in the HTML page, you can also change Object.style.visibility property. Some controls like DMClientSocket, DMIEEE488Port and DMComPort are invisible by design and don't implement this property.
| property TickStyle: User_Defined |
TickStyle property determines axis major ticks positions. Possible values of this property listed in the AxisTicksType enumeration.
| property Color: User_Defined |
This property should be used to change color of the selected object.
| property Font: PTR |
This property should be used to change font of the selected object. It returns reference to the special IFontDisp interface pointer. See Microsoft OLE documentation for more details.
| property Format: BSTR |
This property allows you to change numeric format. Possible values are: XX.Yt, where XX - total number of digits, Y - number of digits after decimal point, t - one of the following characters:
| r/o property Document: IDispatch |
Document property returns DMDocument object which is an owner of the given object. So that, you don't need to cycle through the object collections to determine the object's owner. Keep in mind that in DM, VCL objects may be destroyed while appropriate COM objects still alive since their lifecycle is governed by reference counting mechanism. Such COM objects with killed VCL owner become a "zombie" - they have no actual data, their methods do nothing and properties return empty data.
sub TestSerie
dim Serie
if Server.ActiveDocument is Nothing then
MsgBox "NULL document"
else
set Serie=Server.ActiveDocument.Plot.CurrentSerie
MsgBox Serie.Document.WindowCaption
end if
end sub
sub TestAxis
dim Axis
set Axis=Server.ActiveDocument.Plot.XAxis2
MsgBox Axis.Document.WindowCaption
end sub
sub TestContainer
dim Container
set Container=Server.ActiveDocument.Container
MsgBox Container.Document.WindowCaption
end sub
sub TestPlot
dim Plot
set Plot=Server.ActiveDocument.Plot
MsgBox Plot.Document.WindowCaption
end sub
sub TestWorksheet
dim Worksheet
set Worksheet=Server.ActiveDocument.Worksheet
MsgBox Worksheet.Document.WindowCaption
end sub
dim Worksheet1
set Worksheet1=Server.ActiveDocument.Worksheet
sub TestWorksheet1
MsgBox Worksheet1.Document.WindowCaption
end sub
dim Serie1
set Serie1=Server.ActiveDocument.Plot.CurrentSerie
sub TestSerie1
if Serie1.Document is Nothing then
MsgBox "NULL document"
else
MsgBox Serie1.Document.WindowCaption
end if
end sub