A declarative formatter applied to numeric tick / label values.
The Default behaves like the legacy formatter: scientific for very small or very large magnitudes, fixed-point with one decimal otherwise. The other constructors give the caller explicit control without needing to embed a Haskell function in the spec.
Constructors
FormatDefaultFormatPrecision Intfixed point with the given decimals
FormatScientific Intscientific notation with the given decimals
FormatPercent Intpercentage (multiplies by 100), with given decimals
FormatCommainteger with comma grouping (1,234,567)
FormatDateTime !Textepoch-millisecond value formatted with the given strftime-style pattern; unsupported in this phase, returns the raw value.
FormatTemplate !Texta printf-like template with a single "{}" placeholder. This phase only supports "{}" itself.
FormatSISI suffixes (1.2k, 3.4M)