Skip to content
LogoLogo

Value formats

A format is the optional display format applied to a numeric or date value. It is available on every island and spec that renders a value: metric.kpi, every metric.scorecard stat, gauge.goal, table.grid columns and details, timeline.feed highlight/stats/footer, and every chart's format (and xFormat on the scatter). The set is identical everywhere, so a format you learn on one island works the same on the next.

format is distinct from unit: unit appends a free-form suffix string (bpm, kcal), while format controls how the number itself is rendered. Omitting format shows a plain number with up to two decimals (the same as decimal).

For the field-by-field schema, see the Manifest Reference; for where each island accepts a format, see the Islands overview.

Currency

Whole units in the locale symbol, no decimals.

FormatExampleNotes
usd1234 → $1,234US dollar
eur1234 → €1,234Euro
gbp1234 → £1,234Pound sterling
jpy1234 → ¥1,234Japanese yen

Number

FormatExampleNotes
int1500.6 → 1,501Thousands-separated integer (rounds).
decimal1234.5 → 1,234.5Thousands-separated, up to 2 decimals; same as omitting format.
pct0.125 → 12.5%Expects a 0–1 fraction; multiplies by 100.
compact1200 → 1.2KAbbreviated large numbers (3400000 → 3.4M).

Unit

FormatExampleNotes
kg7.25 → 7.3 kgKilograms, one decimal.
bytes1536 → 1.5 KB1024-scale (B/KB/MB/GB/TB/PB); 1572864 → 1.5 MB.
duration90 → 1m 30sInput is a number of seconds; 3900 → 1h 5m, 273600 → 3d 4h.

Date & time

Dates and times render without a timezone, so the value matches the data's wall clock and the server and client always agree.

FormatExampleNotes
date2026-06-11 → Jun 11, 2026Day, no time.
datetime2026-06-11 21:30 → Jun 11, 21:30Day and time of day.
time2026-06-11 21:30 → 21:30Time of day only.
month2026-06-11 → Jun 2026Month and year.