label

Configures the label that belongs to the horizontal crosshair line.

Type: Object

Crosshair labels can be configured using the following objects.

  • crosshair | horizontalLine | label
    Configures the label of the horizontal crosshair line only.

  • crosshair | verticalLine | label
    Configures the label of the vertical crosshair line only.

  • crosshair | label
    Configures both the labels.

These objects have identical structure, but the label settings declared in the horizontalLine or verticalLine object override the label settings declared directly in the crosshair object.

See Also
  • crosshair | verticalLine | label - configures the label that belongs to the vertical crosshair line.

backgroundColor

Paints the background of the label that belongs to the horizontal crosshair line.

Type: String
Default Value: '#f05b41'

This option supports the following colors.

customizeText

Customizes the text displayed by the label that belongs to the horizontal crosshair line.

Type: function(info)
Function parameters:
info: Object
Information about the point a user paused on.
Object structure:
The value of the point.
valueText: String
The value with an applied format and converted to string.
point: Point
The Point object.
Return Value: String
The text to be displayed in the label that belongs to the horizontal crosshair line.
Cannot be used in themes.

NOTE: The parameter of the customizeText function is mirrored by the this object.

font

Specifies font options for the label of the horizontal crosshair line.

Type: Object

format

Formats the point value before it will be displayed in the crosshair label.

Type: Format
Default Value: undefined

NOTE: DevExtreme widgets provide a wide choice of predefined formats. If you are, however, going to use custom formats, link the Globalize library to your project. Learn how to do this from the Installation topic.

See Also
  • format - provides a comprehensive overview of formatting capabilities.
  • Data Formatting - shows how to apply formatting to various widget elements.

precision

Deprecated

Use the crosshair | horizontalLine | label | format | precision option instead.

Specifies a precision for formatted values.

Type: Number
Default Value: undefined

visible

Makes the label of the horizontal crosshair line visible. Applies only if the crosshair feature is enabled and the horizontal line is visible.

Type: Boolean
Default Value: false