GaugeScale.IsAbsoluteLabelOffset

Syntax

IsAbsoluteLabelOffset: Boolean;

Description

The IsAbsoluteLabelOffset property determines units used to specify offset for text labels in the scale.

Comments

Use JSON or the setIsAbsoluteLabelOffset method to set the property value, and the getIsAbsoluteLabelOffset method to get the property value.

If the property is set to True (default), offset is specified in pixels, otherwise it is specified in percents.

Example

To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating Hand Watch).

Set that offset of scale text labels is measured in percents and change offset value:

// Get speedometer scale
var scale = speed1.getScales()[0];
// Set that text labels offset is measured in percents
scale.setIsAbsoluteLabelOffset(False);
// Set offset for scale text labels
scale.setLabelOffset(-0.2);

As the result, offset of scale text labels is changed:

See also:

GaugeScale