Skip to content

Documentation / @ripl/charts / ValueFormatInput

Type Alias: ValueFormatInput ​

ValueFormatInput = AxisFormatType | NumberFormatOptions | ((value) => string)

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

A value formatter accepted anywhere a chart renders a raw value as text (tooltips, data labels, pie segment labels, axis ticks). Either a built-in AxisFormatType, an Intl number-format options object (e.g. { style: 'currency', currency: 'USD' }), or a custom callback.