numberFormat section controls how numeric values are displayed in tooltips, data labels, legends and headlines. Axis ticks abbreviate on their own. The renderer’s locale sets the separators. What a value is (a currency, a percentage, a date) is the column’s valueFormat in the data, not a config key.
Options
number | 'auto'
default:"auto"
Decimal places. A number fixes them (
2 gives 1234.56); 'auto' varies
with magnitude.'auto' | 'k' | 'm' | 'b' | 'none'
default:"auto"
How large numbers are shortened:
'none'—1,234,567'auto'—1.23m, chosen by magnitude'k'/'m'/'b'— force thousands / millions / billions
string
Declared on the type, but the formatters do not read it: the thousands
separator always follows the locale.
string
Declared on the type, but the formatters do not read it: the decimal separator
always follows the locale.
Example
Related
- Configuration overview
- Configuration overview › Locale —
parsingLocale, the fallback for display formatting - Quickstart › locale — the renderer’s
formattingLocale - Interactivity › tooltips — per-row
formaton a layer’s tooltip

