Documentation / @ripl/charts / resolveFormatLabel
Function: resolveFormatLabel() ​
resolveFormatLabel(
format?): ((value) =>string) |undefined
Defined in: charts/src/core/options.ts:1053
Resolves a ValueFormatInput into a label formatting function. A built-in AxisFormatType maps to a preset formatter, an Intl number-format options object binds numberFormat to those options, and a function is returned as-is.
Parameters ​
| Parameter | Type |
|---|---|
format? | ValueFormatInput |
Returns ​
((value) => string) | undefined