# Data and dashboards {#c10}

> Chapter 10 of the App Design Guide 3.0.0. Index: https://www.designguide.dev/llms.txt

Numbers, dashboards, tables, and charts help people decide and act. Each rule makes one answer a question. Medium uses the Compact answer unless [chapter 5](https://www.designguide.dev/md/05-adapt-across-sizes.md) says otherwise.

## Numbers {#s10-1}

### 10.1 Show one hero number with one caption  {#show-one-hero-number-with-one-caption}

Default

**Rule:** Make the one number that matters the largest item on the screen, with one short caption under it.

**Why:** People read the biggest item first. One number and one caption answer in one glance.  **When not:** A comparison screen, such as 2 plans side by side, can give each number the same size.

- Set the hero number at 32 px and its caption at 12 px.
- Show a goal in small text, not as a second hero.

**Picture:** Do: One large number, one caption, and one small line. Don't: 4 numbers share one size. The eye has no place to start.

### 10.2 Color the change and add a word  {#color-the-change-and-add-a-word}

Default

**Rule:** Color only the number that changed, and add a sign, an arrow, or a word that gives its direction.

**Why:** Color draws the eye to the change. A sign or a word keeps the meaning without color.

- Leave numbers that did not change in the normal text color.
- Never use color alone (see [15.7](https://www.designguide.dev/r/never-use-color-alone.md)).
- Show the new value, the old value, and the difference in words.

**Picture:** Do: An arrow, the old value, and words give the change. Don't: The change has no sign, arrow, or word. The bare 2 is unclear.

**See:** [15.7 Never use color alone](https://www.designguide.dev/r/never-use-color-alone.md)

## Dashboards {#s10-2}

### 10.3 State the question in the page title  {#state-the-question-in-the-page-title}

Default

**Rule:** Title each dashboard with the question it answers, such as "Are today's orders on time?"

**Why:** A question tells the viewer what the page is for and the designer what to leave out.  **When not:** A tool with many unrelated pages can use the page noun, such as "Orders".

**Picture:** Do: The title asks the question. The tiles answer it. Don't: The title names no question. The viewer must work out the purpose.

### 10.4 Order content by importance for the role  {#order-content-by-importance-for-the-role}

Default · Adapts

**Rule:** Put the answer for the viewer's role first: KPI tiles, then charts, then tables.

**Wide screen:** On a wide screen, lay the tiles in a grid and put each chart beside its table. (Triggers: Width 840+)

**Why:** Busy people read the top and stop. The first screen must carry the decision.  **When not:** A screen watched all day for alerts can keep alerts on top for every role.

- Put supporting charts next and detail tables last.
- Keep the same tile order at every size ([10.5](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)).
- Keep each tile to a label, a number, and a change.

**Picture:** Do: The key number sits above the detail table. Don't: The detail comes first. The answer sits at the bottom. Figure: Orders dashboard on a phone, one column.

**See:** [10.5 Give each KPI a label, number, and change](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)

### 10.5 Give each KPI a label, number, and change  {#give-each-kpi-a-label-number-and-change}

Default

**Rule:** Show at most 4 KPI tiles per row, each with a label, a number, and a change with its period.

**Why:** A number alone has no meaning. A change with a period tells if it is good.  **When not:** A status tile can show a state word, such as "On track", instead of a change.

- Use the same period in every tile of a row.
- Keep the tile order the same on every visit.

**Picture:** Do: Each tile has a label, a number, and a change with a period. Don't: No change is shown. The viewer cannot tell good from bad.

### 10.6 Keep row actions off a dashboard  {#keep-row-actions-off-a-dashboard}

Default

**Rule:** Let a dashboard report, and keep an action button out of every row.

**Why:** Buttons in every row turn a reading page into a work page. Work belongs in a tool.  **When not:** A queue that people work through all day is a tool. Row actions fit there.

- Put one action, such as Export, in the page toolbar.
- When a row needs an action, use one More menu per row.
- Name the row in the action: "Retry order 4412".

**Picture:** Do: Rows only report. One Export action sits in the toolbar. Don't: Every row has an unnamed Retry button.

### 10.7 Show filters, time range, and update time  {#show-filters-time-range-and-update-time}

Default

**Rule:** Show each filter with its current value, the time range, and the time of the last update.

**Why:** People must know which data they see. Hidden filters make 2 people read different numbers.  **When not:** A single-value wall screen can show only the update time.

**Picture:** Do: Filter values, range, and update time are all in view. Don't: A filter icon hides the values. No range or update time shows.

### 10.8 Keep context when a person drills down  {#keep-context-when-a-person-drills-down}

Default

**Rule:** Keep the filters, the time range, and a way back when a person opens a detail from a dashboard.

**Why:** People lose their place when a detail view resets the filters, and stop exploring.

**Picture:** Do: The detail keeps the filters and offers a way back. Don't: The filters reset to All. The person must set them again.

## Tables {#s10-3}

### 10.9 Start-align text and end-align numbers  {#start-align-text-and-end-align-numbers}

Default

**Rule:** Start-align text columns, end-align number columns, and never center a column.

**Why:** Aligned digits let the eye compare values at a glance. A centered column breaks the edge.  **When not:** A column of one-symbol marks, such as a check, can sit in the center.

- Use the same number of decimals in a column.
- Use a font with equal-width digits (tabular figures).
- Offer a compact row density for long tables.

**Picture:** Do: Digits line up. Every number has 2 decimals. Don't: The numbers start-align, so the digits do not line up.

### 10.10 State the unit once, in the header  {#state-the-unit-once-in-the-header}

Default

**Rule:** Put the unit in the column header once, and leave it out of every cell.

**Why:** Repeated units add noise and break the digit alignment.  **When not:** Convert mixed units to one unit when you can. Repeat a unit only when units must differ.

**Picture:** Do: The header says MB once. Cells hold only numbers. Don't: Every cell repeats MB. The header says nothing.

### 10.11 Mark every empty cell  {#mark-every-empty-cell}

Default

**Rule:** Put a short dash in every empty cell, and never leave a cell blank.

**Why:** A blank cell looks like data still loading. A dash says that no value exists.

- Use the same dash everywhere in the product.
- Write 0 only when the value is zero.
- Give the dash cell the hidden text "No value".

**Picture:** Do: A dash marks the cell that has no value. Don't: The blank cell looks unfinished or broken.

### 10.12 Keep the header and sort state visible  {#keep-the-header-and-sort-state-visible}

Default · Adapts

**Rule:** Keep the header row in view as the table scrolls, and show the sort state.

**Wide screen:** On a wide screen, keep the first column fixed too, and let a press on a header sort the column. (Triggers: Fine pointer, Dense data)

**Why:** People lose the column names after a few rows. A sort state explains the row order.

- Make each sortable header reachable by keyboard.
- Let a second press flip the direction.
- Keep a fixed first column on a sideways scroll ([10.21](https://www.designguide.dev/r/turn-a-wide-table-into-phone-rows.md)).

**Picture:** Do: An arrow marks Late (min) as the sorted column. Don't: Nothing shows how the rows are sorted. Figure: Late orders on a phone, header with a sort arrow.

**See:** [10.21 Turn a wide table into phone rows](https://www.designguide.dev/r/turn-a-wide-table-into-phone-rows.md)

## Charts {#s10-4}

### 10.13 Start every bar chart at zero  {#start-every-bar-chart-at-zero}

Default

**Rule:** Start the value axis of every bar chart at zero so that bar length matches the value.

**Why:** A cut axis makes a small gap look large. People read bar length as the amount.  **When not:** A line chart can use a range that does not start at zero when the axis shows it.

**Picture:** Do: Bar lengths match the values. Nov is 28% below Sep. Don't: The same data. Nov looks about 3.5 times shorter than Sep.

### 10.14 Limit series to 4 and label directly  {#limit-series-to-4-and-label-directly}

Default

**Rule:** Draw at most 4 series in a chart, and label each line at its end instead of in a far legend.

**Why:** More than 4 lines tangle. A label at the line end removes the trip to a legend.  **When not:** With more than 4 series, split the data into small charts that share one scale.

- Tell series apart by label and position. Keep dashes for a forecast.
- Add a marker or a heavier line to the key series.

**Picture:** Do: 2 lines, each named at its end. No legend is needed. Don't: 6 lines tangle. The legend sits far from the lines.

### 10.15 Draw actual as solid and forecast as dashed  {#draw-actual-as-solid-and-forecast-as-dashed}

Default

**Rule:** Draw measured data as a solid line and a forecast as a dashed line.

**Why:** The line style tells how sure the data is. People must never read a guess as a fact.

- Explain solid and dashed in one short line under the chart.

**Picture:** Do: The forecast is dashed. Measured data is solid. Don't: The forecast looks like measured data. Only the note says otherwise.

### 10.16 Title each chart with its one message  {#title-each-chart-with-its-one-message}

Default

**Rule:** Write each chart title as the one message the chart shows, such as "Late orders fell in November".

**Why:** People should not hunt for the point. One chart carries one message.  **When not:** A tool where people pick any data can use a plain label, such as "Orders by month".

- Put the key number in the title when the chart shows one.

**Picture:** Do: The title states the message. The marked bar proves it. Don't: The title names the data. The viewer must find the point.

### 10.17 Design 4 states for every chart  {#design-4-states-for-every-chart}

Default

**Rule:** Design 4 states for every chart: loading, no data, input needed, and load error.

**Why:** A blank chart looks broken. Each state needs its own words and one next step.

- Keep the axes visible in the needs-input state.
- Show a skeleton for a wait of 1 to 10 s ([8.2](https://www.designguide.dev/r/shape-the-skeleton-like-the-final-content.md)).
- Offer Try again in the error state.

**Picture:** Figure: Loading: keep the real title and show the chart shape in gray. Figure: No data: say what is true and offer one change. Figure: Input needed: show the axes and name the choice. Figure: Load error: say what failed and offer Try again.

**See:** [8.2 Shape the skeleton like the final content](https://www.designguide.dev/r/shape-the-skeleton-like-the-final-content.md)

## Chart text, targets, and evidence {#s10-5}

### 10.18 Give each chart a text version  {#give-each-chart-a-text-version}

Default

**Rule:** Give every chart a text version of its data, such as a table or a one-line summary.

**Why:** A screen reader and a person who cannot see the marks need the same numbers in words.  **When not:** A small trend line next to its own number needs no table.

- Offer a Table view switch, or show the table under the chart.
- For pictures in general, see [15.10](https://www.designguide.dev/r/add-text-alternatives-and-captions-to-media.md).

**Picture:** Do: The table holds the same numbers as the bars. Don't: Only the picture holds the numbers. A screen reader gets nothing.

**See:** [15.10 Add text alternatives and captions to media](https://www.designguide.dev/r/add-text-alternatives-and-captions-to-media.md)

### 10.19 Show a target as a labeled line  {#show-a-target-as-a-labeled-line}

Default

**Rule:** Draw a target as a labeled line on the chart, not as a note beside it.

**Why:** A line shows the gap between the value and the goal at once.  **When not:** A chart with no goal needs no line. Do not invent a target.

**Picture:** Do: The target is a dashed line with its own label. Don't: The target sits in a note, not on the chart.

### 10.20 Put the evidence one step under a status  {#put-the-evidence-one-step-under-a-status}

Default

**Rule:** Put the evidence for a status one step under it, so the person can see what counts.

**Why:** A count with no source invites doubt. One step to the list builds trust.  **When not:** A status that the person set, such as a switch, needs no evidence.

- Make the status a control and give it a chevron.
- List the items that count, with a total.
- State the rule for what counts in one line.

**Picture:** Do: One press on the row lists the 3 workouts behind the count. Don't: The count shows. Nothing leads to the workouts behind it.

## Data on a small screen and a wide screen {#s10-6}

### 10.21 Turn a wide table into phone rows  {#turn-a-wide-table-into-phone-rows}

Default · Adapts

**Rule:** Show a table on Compact as rows of 2 or 3 key fields, or scroll it sideways in its own box.

**Wide screen:** On a wide screen, show all columns in one table, with the header and the first column fixed. (Triggers: Width 840+, Dense data)

**Why:** A table with 6 columns cannot fit in 320 px, and a shrunken table has unreadable cells.  **When not:** A table compared across many columns can scroll sideways in its own box, with a fixed first column.

- Never shrink the text or the columns to fit the width.
- Put the row name first and the one value that matters last.
- Open the row to see the other fields.

**Picture:** Figure: Late orders as a list of rows on a phone.

### 10.22 Show chart values on press and hover  {#show-chart-values-on-press-and-hover}

Default · Adapts

**Rule:** Show a mark's exact value when a person presses it.

**Wide screen:** On a wide screen, show the value when the pointer rests on a mark or the mark has focus. (Triggers: Hover, Fine pointer, Keyboard)

**Why:** Marks are small, and a chart cannot print every value. A value on demand avoids clutter.  **When not:** A chart with 4 or fewer marks can print each value on the mark.

- Keep the pressed value in view until the next press.
- Offer the same values as text ([10.18](https://www.designguide.dev/r/give-each-chart-a-text-version.md)).
- Make marks 44 by 44 px for touch, 24 px for a pointer.

**Picture:** Figure: Bar chart on a phone with a value label on the pressed bar.

**See:** [10.18 Give each chart a text version](https://www.designguide.dev/r/give-each-chart-a-text-version.md)

### 10.23 Collapse filters into one button on a phone  {#collapse-filters-into-one-button-on-a-phone}

Default · Adapts

**Rule:** At Compact, collapse the filters into one Filters button with a count, and list the active values below it.

**Wide screen:** On a wide screen, show the filters in a visible bar above the data. (Triggers: Width 840+)

**Why:** Four filters in a row push the data away. One button saves space and shows a filter is on.  **When not:** A page with 1 filter can show that filter in the open.

- Open the filters in a sheet with one Apply button.
- Keep the count equal to the number of filters set.
- Show every value, range, and update time ([10.7](https://www.designguide.dev/r/show-filters-time-range-and-update-time.md)).

**Picture:** Figure: Late orders on a phone with one Filters button.

**See:** [10.7 Show filters, time range, and update time](https://www.designguide.dev/r/show-filters-time-range-and-update-time.md)

## Wide tables, chart size, and long lists {#s10-7}

### 10.24 Let people choose, size, and order columns  {#let-people-choose-size-and-order-columns}

Default · Desktop only

**Rule:** Let people choose, resize, and reorder the columns of a wide table, and keep their choice.

**Applies with:** Fine pointer, Keyboard, Dense data

**Why:** People read different fields for different jobs. A table fit to one job fits the others worse.  **When not:** A table with 4 or fewer columns needs no column control.

- Put a Columns button in the toolbar that lists every column.
- Show a grip on each header edge to resize and drag.
- Offer a keyboard way to resize and reorder.

**Picture:** Figure: A Columns button, and a grip on each header. Status is being dragged. Figure: The Columns menu lists every column. A check shows a column in the table.

### 10.25 Keep chart labels readable at 320 wide  {#keep-chart-labels-readable-at-320-wide}

Default · Adapts

**Rule:** Let a chart fill its container, keep its aspect ratio, and keep its labels at 12 px or more at 320 wide.

**Wide screen:** On a wide screen, label every bar and show the value on hover, and keep the plot at its own aspect ratio. (Triggers: Width 840+, Hover)

**Why:** A shrinking chart shrinks its labels. Fewer 12 px labels beat all 8 px labels.

- Drop every second axis label before you shrink the text.
- Use fewer bars when all of them do not fit.
- Keep the axis title and the unit in view at every size.

**Picture:** Figure: Orders per week as 8 bars on a phone, labels on every second bar.

## Choose and size dashboard parts {#s10-8}

### 10.26 Pick the chart type from the question  {#pick-the-chart-type-from-the-question}

Default · Adapts

**Rule:** Pick the chart from the question: a line for change over time, a bar to compare items.

**Wide screen:** On a wide screen, show 2 charts side by side, each with its own title and question. (Triggers: Width 840+)

**Why:** The question sets the shape. A wrong shape hides the answer.  **When not:** A tool where people build their own charts can offer every type.

- Show part of a whole as a stacked bar or a table.
- Use a pie only for 3 slices or fewer.
- On Compact, show one chart per screen with a switch.

**Picture:** Figure: Orders growth on a phone, one chart with a switch.

### 10.27 Set the tile count by size class  {#set-the-tile-count-by-size-class}

Default · Adapts

**Rule:** Show 2 KPI tiles per row on Compact, and keep each tile at least 160 px wide.

**Wide screen:** On a wide screen, show 3 tiles per row from 840 and 4 per row from 1200. (Triggers: Width 840+)

**Why:** Two tiles fit a phone and stay easy to read. A tile under 160 px wraps its number.

- Give a Medium window 2 wider tiles per row.
- Keep the tile order the same at every size ([10.5](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)).
- Add a tile only when its answer matters to the role.

| Size class | Window width | Tiles per row |
| --- | --- | ---: |
| Compact | Under 600 | 2 |
| Medium | 600 to 839 | 2 |
| Expanded | 840 to 1199 | 3 |
| Large | 1200 and up | 4 |

**Picture:** Figure: Four KPI tiles on a phone, 2 per row.

**See:** [10.5 Give each KPI a label, number, and change](https://www.designguide.dev/r/give-each-kpi-a-label-number-and-change.md)

### 10.28 Set table text size and row height  {#set-table-text-size-and-row-height}

Default · Adapts

**Rule:** Set touch tables at 16 px text and 44 px rows, and dense pointer tables at 14 px and 32 px.

**Wide screen:** On a wide screen, switch a dense table to 14 px text and 32 px rows for a pointer. (Triggers: Fine pointer, Dense data, Width 840+)

**Why:** A finger needs a 44 px row. A pointer is precise, so a dense table can show more rows.

- Never set table text under 14 px.
- Keep 16 px and 44 px when the screen takes touch.
- Offer a density switch ([3.16](https://www.designguide.dev/r/set-density-by-input-and-task.md) sets row height).

**Picture:** Figure: Late orders on a phone, rows 44 px high.

**See:** [3.16 Set density by input and task](https://www.designguide.dev/r/set-density-by-input-and-task.md)

### 10.29 Compare with the previous period  {#compare-with-the-previous-period}

Default · Adapts

**Rule:** Compare each number with the previous period of the same length, and name that period.

**Wide screen:** On a wide screen, also draw the previous period as a dashed line on the chart. (Triggers: Width 840+)

**Why:** A number has no meaning alone. A same-length period avoids a false gain or loss.

- Default to the last 7 days against the 7 days before.
- Write the period next to the change: "Up 2% from the 7 days before".
- Explain solid and dashed in one line under the chart.

**Picture:** Figure: Orders tile on a phone with its comparison period.

## Dates, numbers, status, and empty pages {#s10-9}

### 10.30 Offer preset date ranges and Custom  {#offer-preset-date-ranges-and-custom}

Default · Adapts

**Rule:** Offer preset ranges of 7, 30, and 90 days, with a Custom choice.

**Wide screen:** On a wide screen, show a range field that opens a calendar, and keep the presets beside it. (Triggers: Width 840+, Fine pointer)

**Why:** Most people want a common range. A preset takes one press, and Custom covers the rest.

- Show the active range as exact dates ([9.22](https://www.designguide.dev/r/show-a-date-range-with-both-ends-exact.md)).
- Name the time zone next to the range.
- Open the platform date control for Custom ([6.22](https://www.designguide.dev/r/pick-a-date-with-the-right-control.md)).

**Picture:** Figure: Late orders on a phone with preset date ranges.

**See:** [9.22 Show a date range with both ends exact](https://www.designguide.dev/r/show-a-date-range-with-both-ends-exact.md), [6.22 Pick a date with the right control](https://www.designguide.dev/r/pick-a-date-with-the-right-control.md)

### 10.31 Format large numbers one way  {#format-large-numbers-one-way}

Default

**Rule:** Write a number in full with a thousands separator, and shorten it only where space is tight.

**Why:** Full numbers with separators read fast and line up. A short form such as 1.2k hides digits.  **When not:** Shorten a number in a small tile, and show the full value on press or in the table.

- Give every number in a column the same decimals.
- Use k for thousands and M for millions, never both.
- Put the unit in the header or the label.

**Picture:** Do: Every number is in full, with a separator. The digits line up. Don't: Three formats in one column. The values are hard to compare.

### 10.32 Show update time and mark stale data  {#show-update-time-and-mark-stale-data}

Default

**Rule:** Show the time of the last update, and mark the data as stale after a stated limit.

**Why:** People act on what they see. An update time and a stale mark show how far to trust it.  **When not:** A static report that never changes needs only its date.

- Update a number in place, without a jump ([14.6](https://www.designguide.dev/r/let-a-changed-number-roll.md)).
- State the limit in the stale message, such as 15 minutes.
- Offer a Refresh action next to the stale mark.

**Picture:** Do: Fresh data shows its update time. Do: Stale data says so and offers Refresh. Don't: The number shows no time. Nobody knows its age.

**See:** [14.6 Let a changed number roll](https://www.designguide.dev/r/let-a-changed-number-roll.md)

### 10.33 Show status with a word and an icon  {#show-status-with-a-word-and-an-icon}

Default

**Rule:** Show a good, warning, or bad status with a word and an icon, never with color alone.

**Why:** Some people cannot tell colors apart. A word and an icon shape carry the meaning for everyone.

- Take the words from the status table in [Rule 9.10](https://www.designguide.dev/r/name-a-status-with-one-fixed-word.md).
- Use one icon shape for each state, the same everywhere.
- Put the status word next to the number it describes.

**Picture:** Do: Each state has a word and an icon. Don't: An icon alone names nothing. The reader must guess.

**See:** [9.10 Name a status with one fixed word](https://www.designguide.dev/r/name-a-status-with-one-fixed-word.md)

### 10.34 Replace an empty dashboard with a next step  {#replace-an-empty-dashboard-with-a-next-step}

Default · Adapts

**Rule:** When a whole dashboard has no data, replace its content with one explanation and one next step.

**Wide screen:** On a wide screen, center the message in the content pane and keep the sidebar and filters in view. (Triggers: Width 840+)

**Why:** A page of zeros looks broken. One message that says why, with one action, tells what to do.

- Keep the page title and the filters in view.
- Say why: no data yet, or none in this range.
- Offer one action, such as Change range.

**Picture:** Figure: Orders on a phone with no data in the range.
