Skip to content

Documentation / @ripl/charts / resolveValueFormat

Function: resolveValueFormat() ​

resolveValueFormat(format?): (value) => string

Defined in: charts/src/core/options.ts:747

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 ​

ParameterType
format?ValueFormatInput

Returns ​

(value) => string