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.

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

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