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

Information on the marker value.

Object structure:
value:

Date

|

Number

The raw value.

valueText:

String

The formatted value converted to a string.

Return Value:

String

The text for the label to display.

Cannot be used in themes.
NOTE
As an alternative to the function’s parameter you can use the this keyword.
Show Example:
jQuery

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


                                    

                                    

format

Formats a value before it is displayed in a scale marker.

Type:

Format

Default Value: undefined

See the format section for details on accepted values.

See Also