label

Defines the options that can be set for the text that is displayed by the scale markers.

Type: Object

Show Example:
jQuery

In this example, the scale markers are formatted in the 'year' format using the format option.


                                    

                                    

customizeText

Specifies a callback function that returns the text to be displayed in scale markers.

Type: function

When implementing a callback function for this property, use the value to be displayed in the marker. This value can be accessed using the following properties of the this object:

  • value
    Specifies the value.
  • valueText
    Specifies the value with an applied format, if the format and precision (optional) properties are specified.

The function's parameter represents the same object as the this object. If appropriate, you can use the function's parameter to obtain the value to be displayed by the marker.

Show Example:
jQuery

In this example, the scale markers are formatted in the 'quarterAndYear' format and displayed using the format and customizeText options.


                                    

                                    

format

Specifies a format for the text displayed in scale markers.

Type: String
Default Value: ''
Accepted Values: 'longDate' | 'longTime' | 'monthAndDay' | 'monthAndYear' | 'quarterAndYear' | 'shortDate' | 'shortTime' | 'millisecond' | 'day' | 'month' | 'quarter' | 'year' | 'q' | 'qq' | 'Q' | 'QQ'

You can apply formatting to the label text using one of the date-time formats.