How do you handle typography in data tables with mixed text and numbers?
Working on a dense admin table and the type decisions are piling up:
- Tabular figures for number columns, obviously
- Right-align numbers, left-align text
- But what about IDs, dates and phone numbers? They're "numbers" but nobody sums them
I've been treating anything you'd compare vertically as tabular and right-aligned, and everything else as text. Do you have rules for this, and do you ever use a monospace just for IDs?
Comments · 3
Tabular figures, right-aligned numbers and a consistent decimal alignment are the big three. Also keep units in the header instead of repeating in each cell, so the column stays scannable.
I'd use tabular figures for IDs and dates, left-aligned, since people scan and compare them by position. Monospace for IDs is reasonable if people copy them or tell characters like 0 and O apart; otherwise a regular font with tabular numerals is usually enough.
I'm not a designer, but I notice tables with left-aligned numbers are hard to compare. Right-aligning makes it much easier to see which number is bigger.