Defines the options of the range selector slider markers.
When moving a slider, its marker displays the currently selected scale value. Use the sliderMarker object to set the required options for the range selector slider markers. For instance, you can format the markers' text, change the text font, or make the markers invisible.
Specifies the color of the slider markers.
This option supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
To set a custom color for the font used to display the slider markers' text, use the color property.
Specifies a callback function that returns the text to be displayed by slider markers.
The text for the slider marker to display.
When implementing a callback function for this property, use the value displayed in a slider marker. 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.
Specifies font options for the text displayed by the range selector slider markers.
Formats a value before it is displayed in a slider marker.
Specifies the empty space between the marker's border and the marker’s text.
Specifies the empty space between the marker's left and right borders and the marker's text.
Specifies the empty space between the marker's top and bottom borders and the marker's text.
Specifies the placeholder height of the slider marker.
Consider two horizontally aligned range selectors with the different height of the slider markers. Due to this difference, the chart displayed on the background of both range selectors is scaled differently. To avoid inconsistent data presentation caused by the slider marker, set the marker's placeholderHeight option to the same value. Use the checkbox at the bottom of range selectors to do it.
Specifies in pixels the height and width of the space reserved for the range selector slider markers.
You can set a numeric value to this property. This value will be used as a width and height of both the left and right slider markers. You can also set individual values for a width and height, and make them similar or different for the left and right slider markers. To do this, specify placeholderSize as an object. When setting this object's properties, take into account the font size of the text displayed in the slider markers.
You may need to set this property, when you need to know the exact size of the RangeSelector widget elements in vertical and horizontal directions. For instance, this may be required when displaying an image in the background in a stretched mode. To get the background height, subtract the scale's placeholder height and the slider markers' placeholder height from the RangeSelector's height. To get the background width, subtract the placeholder widths of slider markers from the RangeSelector's width.
Use the sliderMarker.format.precision option instead.
Specifies a precision for the formatted value displayed in slider markers.
Indicates whether or not the slider markers are visible.