text

Specifies the appearance of the text displayed in an indicator of the rangeBar type.

Type:

Object

Note that the indent option of the text configuration object must not be set to 0 if you need to show the text.

customizeText

Specifies a callback function that returns the text to be displayed in an indicator.

Type:

function

Function parameters:
indicatedValue:

Object

Information on the indicated value.

Object structure:
value:

Number

The raw value.

valueText:

String

The formatted value converted to a string.

Return Value:

String

The text for the indicator to display.

Default Value: undefined
Cannot be used in themes.

When implementing a callback function for this option, use the value displayed in the indicator. This value can be accessed using the fields of the object that is passed as the function's parameter. Alternatively, you can use the this object within the function. This object has the same structure as the object passed as a parameter.

font

Specifies font options for the text displayed by the indicator.

Type:

Object

format

Formats a value before it is displayed in an indicator. Accepts only numeric formats.

Type:

Format

Default Value: undefined

See the format section for details on accepted values.

See Also

indent

Specifies the range bar's label indent in pixels.

Type:

Number

Default Value: 0

If this property is set to 0, the range bar text is not shown.

precision

Deprecated

Use the text.format.precision option instead.

Specifies a precision for the formatted value displayed by an indicator.

Type:

Number

Default Value: undefined