The object represents a scale. The viewer contains two objects of the tvScale type. One represents the time axis scale and it is accessible by means of the TrendsView.ScaleTime property. The other represents the value axis scale and it is accessible by means of the TrendsView.ScaleValue property. The number of scale main ticks and its layout owing to the values is defined in the tvTicks object that is owned by the tvScale object and is accessible by the Ticks property.
The right/left time of the time scale is accessible by the TrendsView.TimeMax / TrendsView.TimeMin properties, the maximum/minimum value of the value scale is accessible by the tvTrend.ValueMax / tvTrend.ValueMin properties (see TrendsView.TrendActive).
The object is used only when the graph mode is set.
Dim oScaleTime, oScaleValue
oScaleTime.Location = 1
oScaleTime.LabelFormat = "%d.%m.%Y\n%H:%M:%S"
oScaleTime.TicksColor = "#0000ff"
oScaleTime.MinorTicksColor = "#0000ff"
oScaleTime.LabelBorderVisible = true
oScaleTime.LabelBorderColor = "#0000ff"
oScaleValue.Location = 1
oScaleValue.LabelColor = "#0000ff"
oScaleValue.LabelFormat = 2
oScaleValue.TicksColor = "#0000ff"
oScaleValue.MinorTicksColor = "#0000ff"
oScaleValue.LabelBorderVisible = true
oScaleValue.LabelBorderColor = "#0000ff"