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

Function parameters:
markerValue:

Object

Defines a marker value.

Object structure:
value:

Date

|

Number

Specifies the marker value.

valueText:

String

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

Return Value:

String

The text to be displayed by a scale label marker.

Cannot be used in themes.

When implementing a callback function for this property, use the value to be displayed in the 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.

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.