Skip to content

Documentation / @finchart/core / index / ValueFormatSource

Interface: ValueFormatSource ​

Defined in: packages/core/src/plot/capabilities.ts:170

y formatting as resolved by the pane — this pane's axis.format, or the chart-wide default (config.axis.y.format) if there is none, or two decimal places failing that. The default for the crosshair's y badge, legend, tooltip, and priceLine label all reads this — the axis owns formatting, and a decoration's own option remains an override.

Consumers: crosshairLine, tooltip, legend, priceLine

Extended by ​

Methods ​

formatValue() ​

formatValue(value): string

Defined in: packages/core/src/plot/capabilities.ts:171

Parameters ​

value ​

number

Returns ​

string