TimeZoomMinForCompress - property of object TrendsView
Minimum range (length) for setting the range of the time axis of the viewer for displaying calculated values.
TimeZoomMinForCompress As Variant
oTView.TimeZoomMinForCompress = n
- The length is set as a real number that means the number of days
means a half day). The value -1
means that the calculation is not done, the trend server always returns all points, but PointsMaxVisibleCount
as the maximum.
string value - The time span can be set in text form. In such case it is represented by a real number followed by the the time unit identifier (sec,min,hour,day). Input example: "1.5sec", "1min30sec".
Property access for read and write
. The preset value of this property is defined in the TimeZoomMinForCompress
configurator of this object. It is used only when the graph mode
is set. When reading from the property, the numeric value is always returned. The initial value of the property is set to "90day"
If the current range of the time axis (TimeMax - TimeMin) exceeds the value TimeZoomMinForCompress and the number of points stored by the trend server (by the PmTrend object) exceeds the value PointsMaxVisibleCount in this range, then the trend server provides the evaluation of values, and only the PointsMaxVisibleCount points are returned to the viewer calculated according to CompressType. The trend server creates the data in the response to the query as follows: The range of the time axis is divided into the same time interval with the length (TimeMax - TimeMin)/PointsMaxVisibleCount and in each such interval a new point is calculated by the CompressType method and the set of such calculated points is returned to the viewer.
oTView.TimeZoomMinForCompress = 1/24
oTView.TimeZoomMinForCompress = "1.5hour"
oTView.TimeZoomMinForCompress = "1hour30min"