Data Table
Variant: Standard
Made-up data, for demonstration only
Variants
5 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- You need to look up and compare each row's values precisely, not get an overview
Data Table is a table that readers can sort by column, search and page through themselves. Use it when people need to find the value for an item they care about and compare row by row, rather than take in the overall picture from a shape. This example is data for 12 branches, sorted by new loan amount (made-up data).
How to read a Data Table
- One row is one branch. The columns are the properties: region, new loan amount, new accounts and NPL (non-performing loans).
- The column being sorted has a bold header and an arrow. ↓ is high to low and ↑ is low to high. Click a header to sort and click again to reverse the order.
- The search box above the table filters rows at once. Try typing "Northeast" and 3 branches remain.
- Numbers are right-aligned and text is left-aligned. The units digits line up, so you can compare rows quickly.
- Below the table, a line says which rows are showing out of the total. Press previous or next to change page.
When to use it
- Readers need to find rows that meet a condition, such as the branch with the lowest NPL, or all branches in the South.
- Readers need to compare values row by row and want the real numbers, not an approximate picture.
- The data is a long list and each person cares about different rows, so they can sort and search for themselves.
A good table supports four reader tasks: finding rows that match a condition, comparing data, viewing, editing or adding the data of a single row, and acting on rows.
When not to use it
- You want a pattern or trend to show at once. Use a chart such as a Line Chart or a Table with Sparklines, which puts a small history line in each row.
- You want a short ranking that shows the leaders. Use a Leaderboard, which cuts the list to the top group.
- You want status against target, so readers pick what to look at first. Use a RAG Scorecard.
- You need a two-way summary of numbers with totals. Use a Pivot Table.
Common mistakes
1. Centre-aligned numbers
Decimal points and units digits do not line up, so you cannot compare digits. Right-align numbers when readers compare down a column. See the "Center-aligned numbers" variant, which shows the problem.
2. Too much data for one table
Split it into several tables or several pages instead of cramming everything into one. This example pages 6 rows at a time, or use the "Dense rows, no paging" variant if the data is small enough.
3. Sorting works but the table does not say what it is sorted by
Put an arrow on the sorted column's header and make it stand out from the other columns. Readers then do not have to guess where the order comes from.
4. No table caption
Add a short caption above the table saying what it is, like a heading. It helps readers and screen readers.
5. Sort buttons that only work with a mouse
Column headers should be buttons that can take keyboard focus. This table uses real buttons, not clickable text.
Compared with similar charts
| Chart | What it shows | Choose it when |
|---|---|---|
| Data Table | Real values by row, sortable and searchable | Readers need to find and compare rows |
| Pivot Table | Two-way numbers with totals | You summarise by two dimensions |
| Conditional Formatting Table | A table coloured by value | You want the standout cells to show |
| Frequency Table | The count and share of each group | You summarise counts for one variable |
| Leaderboard | Top ranks with bars | You do not want readers to sort it themselves |
Frequently asked questions
Should readers be able to sort every column?
Only the columns where sorting means something, such as numbers and names. It is not needed for columns of long descriptive text.
Should I page the table or show everything?
If the data is long enough to need a lot of scrolling, page it or split it into several tables. If it is small enough to scan on one screen, show everything in the "Dense rows, no paging" style.
What should I do on mobile?
Hide the secondary columns and keep the ones readers need to decide. This example hides region and new accounts on a narrow screen.
References
- Data Tables: Four Major User Tasks · Nielsen Norman Group (2022) · nngroup.comUsed to confirm: the four main tasks a data table should support
- Table · GOV.UK Design System · design-system.service.gov.ukUsed to confirm: right-align numbers when comparing columns, add a caption describing the table, split large data into several tables or pages
Last updated 28 Nov 2026
In the same group
- KPI Card / Big Number
- Gauge / Speedometer
- Progress Bar
- Pareto Chart
- Control Chart
- Run Chart
- Candlestick / OHLC
- Depth / Order Book Chart
- ROC Curve
- Confusion Matrix
- Cumulative Gains Chart
- Forest Plot
- Volcano Plot
- Ternary Plot
- Contour / Surface Plot
- 3D Scatter Plot
- Table + Conditional Formatting
- Burndown Chart
- Kaplan–Meier
- Bland–Altman Plot
- Pivot Table / Matrix
- KPI Tree / Driver Tree
- Radial Bar / Progress Ring
- Table with Sparklines
- RAG Scorecard