Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object tvTicks (TrendViewer scale ticks)

Description:
Object for configuration of scale ticks or grid lines layout
Properties and methods:
AlignType Align type of scale main ticks, grid lines owing to values on axis
AlignValue Align value of scale main ticks legends owing to values
CountType Type of setting number of scale main ticks-legends or grid lines
CountValue The number of the scale main ticks-legends
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 scale main ticks (longer ones) and an assignment which values on the axis have got the main tick (and thereby a legend). For example, it can be defined a legend for the value on the time scale 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 the axis have got the grid line.
 
If they remains preset by properties of this object, then the number, layout and alignment of scale 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 or value scale.

The object is used only if the graphic mode is set.

Example:
Setting the ticks layout of the time and value scale
JavaScriptVBScriptSelect and copy to clipboard

var oTicks;
var oTView = pMe;

oTicks = oTView.ScaleTime.Ticks;
oTicks.AlignType = 3;  //alignment to the absolute value
oTicks.AlignValue = 1/4;  //alignment to the value 06:00:00 on 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 on the value (Y) axis
oTicks.CountType = "distancevalue";
oTicks.CountValue = 200;  //distance of two main ticks is 200
PROMOTIC 9.0.9 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice