FormattingFunction: ((value: number, range: FormattingRange, locale?: string) => string)

Type declaration

    • (value: number, range: FormattingRange, locale?: string): string
    • Type definition for a pure formatting function.

      The formatter is supplied a numeric value, and it formats it into a string, that can be displayed on an Axis tick, for example.

      Returns

      Value formated as string

      Parameters

      • value: number

        Numeric value.

      • range: FormattingRange

        Object that represents the possible range for value. For example, the start-end range of an Axis.

      • Optional locale: string

      Returns string