MAIDR JavaScript API
    Preparing search index...

    Variable defaultLabelFormatConst

    defaultLabelFormat: FormatFunction = ...

    defaultFormat without the thousands grouping, for a number that names something rather than measures it: a series called 12345, or a category drawn on an axis that mixes names and numbers. An id reads as itself, digit for digit, where a quantity reads as a quantity.

    Strings pass through unchanged, integers are stringified as-is.

    A fractional number is rounded to DEFAULT_MAX_DECIMALS places, because this is what a screen reader speaks aloud. A value MAIDR computes rather than reads verbatim — a barnorm share, a percentage of a stack — carries the full float, and 57.14285714285714 is sixteen digits to listen through for two digits of meaning.

    Rounding stops at the announcement. Sonification, braille, and extrema all read the underlying numbers, so the pitch of a bar and the position of a braille cell are unchanged; only the spoken text is shortened. An author who needs different precision sets an explicit AxisFormat on the axis, which takes priority over this.

    The value to format

    String representation of the value