Promotic

CountType - property of the tvTicks object

Description:
Type of setting number of main ticks-legends of the scale or grid lines.
The position of main ticks or lines owing to the values is specified according to setting the AlignType property.
Syntax:
String CountType
Values:
"auto" (default) - The number of main ticks is counted automatically according to the current range (length) of the axis. The CountValue property is not used.
"distancevalue" - The value in the CountValue property specifies the distance of two ticks in axis variable units.
For the value (Y) axis it is a real number - specifies the distance of two main ticks.
For the time axis it is a real number - specifies the distance in days, for example, value 1/12 means the difference of 2 hours, the value 1 means the difference of 1 day.
"sec" - The option is valid only for the time axis. The meaning is the same as for the value of the distancevalue parameter, only the difference value in the CountValue property is set in seconds. Specifies the distance of two ticks in the axis variable units, for example, the value 3 means the difference of 3 seconds.
"min" - The option is valid only for the time axis. The meaning is the same as for the value of the distancevalue parameter, only the difference value in the CountValue property is set in minutes. For example, the 2 value means the difference of 2 minutes.
"hour" - The option is valid only for the time axis. The meaning is the same as for the value of the distancevalue parameter, only the difference value in the CountValue property is set in hours. For example, the value 3.5 means the difference of 3 and half hours.
"day" - The option is valid only for the time axis. The meaning is the same as for the value of the distancevalue parameter, only the difference value in the CountValue property is set in days. For example, the value 5 means the difference of 5 days.
"distancepercent" - The value in the CountValue property specifies the distance of two ticks (lines) in percentage of the axis length. For example, the value 30 means that the distance of two main ticks is 30/100 of the axis length.
"count" - The CountValue property specifies the number of main ticks (lines).
"trendpoints" - The option is valid only for the time axis grid (the tvTicks object) that belongs to the tvGrid object, i.e.
oTView.GridTime.Ticks.CountType = "trendpoints" 'is GOOD

Lines of the time axis grid are at measured values.
"scaleticksmain" - The option is valid only for the grid (for the tvTicks object) that belongs to the tvGrid object, i.e.
oTView.GridTime.Ticks.CountType = "scaleticksmain" 'is GOOD
oTView.ScaleTime.Ticks.CountType = "scaleticksmain" 'is BAD

The number is the same as the number specified in the CountType property of the tvTicks object that belongs to the tvScale object, i.e. the number of grid lines is exactly the same as the number of main ticks (value or time) of the scale. It has sense to set it together with setting the AlignType property to the value 10.
"scaleticksall" - The option is valid only for the grid (for the tvTicks object) that belongs to the tvGrid object, i.e.
oTView.GridTime.Ticks.CountType = "scaleticksall" 'is GOOD
oTView.ScaleTime.Ticks.CountType = "scaleticksall" 'is BAD

The number is the same as the number specified in the CountType property of the tvTicks object that belongs to the tvScale object, i.e. the number of grid lines is exactly the same as the number (value or time) of scale main and minor ticks. It has sense to set it together with setting the AlignType property to the value 10.
Note:
Property access for read and write. The default value of this property is defined in the "Type of number of segments" configurator of this object.
 
And also in configurators:
 
This property is also functional in Web panels.
See also:
Example1:
JavaScriptVBScriptSelect and copy to clipboard

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

oTicks = oTView.ScaleTime.Ticks;
oTicks.CountType = "count";
oTicks.CountValue = 4;

oTicks = oTView.ScaleValue.Ticks;
oTicks.CountType = "distancevalue";
oTicks.CountValue = 200;
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.