Documentation / @ripl/charts / resolveValueFormat
Function: resolveValueFormat()
resolveValueFormat(
format?): (value) =>string
Defined in: charts/src/core/options.ts:623
Resolves a value formatter into a function, always returning a usable formatter (falling back to String when no custom format is supplied). Convenience wrapper over resolveFormatLabel for the value-as-text sites that always need to print something.
Parameters
| Parameter | Type |
|---|---|
format? | ValueFormatInput |
Returns
(value) => string