Promotic

Object tvTicks (TrendViewer scale ticks)

Description:
Object for configuration of scale ticks or grid lines layout
Properties and methods:
AlignTypeAlign type of main ticks of the scale, grid lines owing to values on axis
AlignValueAlign value of main ticks of the scale legends owing to values
CountTypeType of setting number of main ticks-legends of the scale or grid lines
CountValueThe number of main ticks-legends of the scale
Note:
The object of the tvTicks type is owned by two types of objects:
1) by the object of the tvScale type that is accessible by means of the tvScale.Ticks property. Specifies the number of main ticks (longer ones) of the scale and an assignment which values on axis have got the main tick (and thereby a legend). For example, it can be defined a legend for the value on the time axis at 10:00 and then every 8 hours. The number of minor ticks (shorter ones) is defined by the MinorTicksNum property.
or

2) by the object of the tvGrid type that is accessible by means of the tvGrid.Ticks property. Specifies the number of grid lines and an assignment which values on axis have got the grid line.


If they remains preset by properties of this object, then the number, layout and alignment of main ticks (longer ones) are counted automatically and the layout of grid lines (vertical or horizontal) is always the same according to the ticks layout that refers to the time scale or value scale.
The object is used only if the graphic mode is set.
Example:
Setting the ticks layout of the time scale and of the value scale
JavaScriptVBScriptSelect and copy to clipboard

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

oTicks = oTView.ScaleTime.Ticks;
oTicks.AlignType = 3;   // alignment to the absolute value
oTicks.AlignValue = 1/4;   // alignment to the value 06:00:00 of the time axis
oTicks.CountType = "count";
oTicks.CountValue = 4;   // number of main ticks is 4

oTicks = oTView.ScaleValue.Ticks;
oTicks.AlignType = 3;   // alignment to the absolute value
oTicks.AlignValue = 0;   // alignment to the value 0 of the value axis
oTicks.CountType = "distancevalue";
oTicks.CountValue = 200;   // distance of two main ticks is 200
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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