Promotic

AlignType - property of the tvTicks object

Description:
Align type of main ticks of the scale (of the tvScale object) or the grid lines (of the tvGrid object) owing to the values on axis (time/value).
Specifies which values of the scale have got the main tick (and thereby a legend = label) or the grid line.
For example, it can be defined a legend for the value on the time axis at 10:00 and then every 8 hours.
Syntax:
Long AlignType
Values:
0 - No alignment
1 (default) - Automatic alignment according to the current axis range. The AlignValue property is not used.
2 - Value in the AlignValue property specifies the absolute value where the main tick has to be placed.
For the value (Y) axis it is a real number. For example, the value 0 in the AlignValue property means that the legend of the scale is placed for the value 0 and for the next value according to the number of main ticks CountType, CountValue.
For the time axis it is a real number that corresponds to the absolute time in days. For example, the 1/4 value in the AlignValue property means that the main tick is on the value of 06:00:00 hour, the value 0 means the time 00:00:00. The next main ticks are specified by setting the CountType, CountValue properties.
3 - Alignment in percentage.
There is specified a value, on which the main tick has to be placed in percentage owing to the axis range (length), in the AlignValue property. For example, the value 30 means that the main tick is placed in 30/100 of (time, value) axis length.
The next main ticks are specified by setting the CountType, CountValue properties.
10 - (valid option only if the value of the property is set in the tvTicks object that belongs to the tvGrid object)
Alignment is the same as the alignment of the AlignType property of the tvTicks object that belongs to the tvScale object i.e. the grid lines are align exactly to the main ticks of the (time, value) scale.
Note:
Property access for read and write. The default value of this property is defined in the "Align type" configurator of this object.
 
This property is also functional in Web panels.
Example1:
JavaScriptVBScriptSelect and copy to clipboard

var oTicks;
var oTView = pMe.Items("../TrendView");

oTicks = oTView.ScaleTime.Ticks;
oTicks.AlignType = 3;

oTicks = oTView.ScaleValue.Ticks;
oTicks.AlignType = 3;
Example2:
See examples in the description of the tvTicks object.
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.