LabelFormatType - property of the tvScale object
Description:
Format type of the legends at the scale main ticks.
Syntax:
Long LabelFormatType
Note:
Property access
for read and write.
The default value of this property is defined in the "
Format type:" configurator of this object.
This property is also functional in
Web panels.
The values
0 and
1 can be used only:
Example:
Legends of the value scale are numeric values to 2 decimal places. Legends of the time scale are a time with the format: day.month.year NewLine hour:minute:second.
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;
oScaleTime.LabelFormatType = 10;
oScaleTime.LabelFormat = "%d.%m.%Y\n%H:%M:%S";
oScaleValue.LabelFormatType = 1;
oScaleValue.LabelFormat = 2;
Dim oTView, oScaleTime, oScaleValue
Set oTView = pMe.Items("../TrendView")
Set oScaleTime = oTView.ScaleTime
Set oScaleValue = oTView.ScaleValue
oScaleTime.LabelFormatType = 10
oScaleTime.LabelFormat = "%d.%m.%Y" & vbCrLf & "%H:%M:%S"
oScaleValue.LabelFormatType = 1
oScaleValue.LabelFormat = 2