Dashboard Design: KPI Layout, Filters and States
skillDesign or review a KPI dashboard: layout, chart choice, filters, loading and empty states, dark theme and accessibility. Use for dashboard design and UX.
agents that use this skill
instructions
Overview
A dashboard shows the most important information a named reader needs for a set of decisions, arranged on a single screen so it can be monitored at a glance (Few). Use this skill to design a new dashboard or review an existing one: which numbers earn a place, what form each takes, how the screen is laid out, how filters, hover, loading and empty states behave, and how it reads in a dark theme and without a mouse or colour vision. The deliverable is a design specification or a list of findings, each with the criterion it rests on. Building it in code and configuring a BI tool are separate jobs.
Mental model
- A panel earns its place through a decision it informs. A number nobody acts on is removed.
- A number without a comparison says nothing. Every figure sits next to a target, a prior period or a threshold.
- The data is the only loud element. Borders, backgrounds and gridlines recede.
- Every value is reachable without hover and without colour.
Rules
Frame the dashboard first
- Name the reader, the decisions the screen supports and how often they look.
- Classify it. An operational dashboard updates continuously, is time-sensitive and must grab attention when something breaks. An analytical dashboard is read with less time pressure and supports comparison and drill-down. A strategic one shows a few high-level measures against targets. The class sets density, refresh and interaction.
- Write the metric inventory: for each metric its definition, its comparison, its threshold or target, and the action a bad value triggers. Cut metrics with no action.
Pick the form of each panel
| The data is | Use | Not |
|---|---|---|
| One current value | A tile: label, value, signed change against a named period, optional sparkline | A one-bar chart |
| A few headline numbers | One row of tiles in the same anatomy | A grouped bar chart |
| A measure against a target with good and bad ranges | A bullet graph: bar, target mark, shaded ranges | A radial gauge, which uses much space to say little |
| Progress toward a limit | A linear meter | A two-slice pie |
| Trend over time | Line | |
| Comparison across categories | Sorted horizontal bars | A pie for close values |
| Exact values to look up, or many categories that each matter | A table with right-aligned numbers at one precision per column | More colours |
| State of many items | A status list: icon, text label and colour together | Colour alone |
A change indicator's colour means good or bad, not up or down: rising cost is bad. Say which direction is good in the specification.
Lay out the screen
- Order by importance: the most important content is at the top, largest and with the highest contrast, starting top left. Go from general to specific as the reader moves down.
- What must be compared sits on one screen. Scrolling or splitting it across screens breaks the comparison.
- Limit the views: Tableau's guidance is two or three per dashboard. Count a row of tiles or a column of bullet graphs as one view. When the story needs more, make a second dashboard or a drill-down rather than a denser screen.
- Group related panels and separate groups with whitespace, not boxes. Align to one grid.
Colour and theme
- Give colour one job per panel: identity, magnitude, direction from a midpoint, or status.
- The same data set has the same colour on every panel of the dashboard.
- Status colours are reserved. A status uses at least two of colour, shape and symbol, with a text label. A category never borrows the status red or green.
- Marks that carry information have 3:1 contrast against what they touch, unless visible labels and values carry the same information.
- Design the dark theme as its own set of colour steps and check each against the dark surface for contrast. On a dark surface a sequential scale runs the other way: the lightest step is the largest value.
- Specify colours by role (surface, text, grid, series 1 to n, each status) with a light and a dark value, so the build swaps them in one place. In forced-colours mode the system overrides fills and strokes, so identity has to survive through labels and shapes.
Filters and time
- Filters live in one place: a horizontal bar above the content or a vertical panel on the left, never inside one chart's menu.
- A filter scopes every panel beneath it, so all the numbers agree. Show which filters are applied and offer one action that clears them.
- State the time range and the time of the last update on the screen.
- Match the refresh rate to how often the data changes; hourly data does not need a 30-second refresh. Content that updates by itself needs a way to pause it or to control the rate.
- Every alert leads to an action. Alert on the symptom the reader feels, not on each possible cause.
Hover, focus and pointer
- A tooltip adds detail; it never holds a value the reader cannot get elsewhere. Direct labels, the axis or a table view carry the essentials.
- Whatever hover shows, keyboard focus shows too. Hover content can be dismissed without moving the pointer, can itself be hovered, and stays until the reader leaves it.
- Pointer targets are at least 24 by 24 CSS pixels or are spaced so that 24-pixel circles around them do not overlap. For small points, attach the tooltip to the nearest point instead of the painted dot.
- Names that come from data enter the page as text, never as markup.
- Honour the reduced-motion setting: remove or replace transitions.
States
| State | Design |
|---|---|
| First load of the whole screen | Skeleton that reserves each panel's final size, so nothing shifts when data arrives |
| One panel loading | A spinner inside that panel; nothing for loads under one second |
| Refresh | Keep the previous data on screen, marked as updating; do not blank the panel |
| No data yet | Say what will appear here and the one step that starts it |
| Filters return nothing | Say so and offer to clear the filters |
| Error | Say what failed and what to do next; keep the other panels working |
Never show "no records" while data is still loading.
Accessibility
- Each chart has a short text alternative and either a data table or a description of its message; give both when readers need both.
- Numbers in columns use tabular figures so digits align. Large numbers use one compact format per axis or column (12.9K, 4.2M).
- Review keyboard order: filters first, then panels in reading order.
Examples
Gauge row to bullet graphs. Bad: six radial gauges across the top. Good: six bullet graphs stacked in one column, each with its target mark and ranges, the worst one first.
Bare numbers to tiles with context. Bad: "Revenue 1,284,113". Good: "Revenue, last 30 days: $1.28M, up 8% on the previous 30 days", with a sparkline of the last 12 weeks.
Hover-only values to reachable values. Bad: a line chart whose values appear only in a tooltip on a 6-pixel dot. Good: the last point of each line is labelled, the tooltip snaps to the nearest date and lists every series, focus shows the same, and a table view holds all values.
Output format
Design specification, saved as dashboard-spec-[slug].md in the working directory when asked:
- Reader, decisions, class and viewing frequency
- Metric inventory: definition, comparison, target, action
- Layout: grid, panel order and sizes, what is above the fold
- Panel list: form, data, colour job, labels, and the text alternative
- Filters, time range and refresh
- States for each panel
- Colour roles with light and dark values
- Acceptance criteria for the build: contrast, keyboard parity, target size, reduced motion, data inserted as text
A review lists findings by impact on the reader's decision, each with the panel, the criterion and the smallest fix, and says what a screenshot could not show.
When the user cannot be asked, name the reader and the decisions you assumed.
Checklist
- Reader, decisions and dashboard class are stated.
- Every metric has a comparison and an action; the rest are cut.
- Each panel's form matches its data; no gauges where a bullet graph fits.
- The most important content is top left and largest; compared content shares a screen.
- Filters sit in one place and scope every panel.
- No value depends on hover or on colour alone.
- Loading, refresh, empty, no-results and error states are specified.
- Light and dark colour roles are both specified.
- Targets, contrast, keyboard parity and reduced motion are in the acceptance criteria.
Composition / References
- Few, "Common Pitfalls in Dashboard Design", 2007: https://www.perceptualedge.com/articles/Whitepapers/Common_Pitfalls.pdf ; "Bullet Graph Design Specification", 2006: https://www.perceptualedge.com/articles/misc/Bullet_Graph_Design_Spec.pdf ; "Information Dashboard Design", 2006 (dashboard classes)
- Nielsen Norman Group: https://www.nngroup.com/articles/dashboards-preattentive/ , https://www.nngroup.com/articles/tooltip-guidelines/ , https://www.nngroup.com/articles/skeleton-screens/ , https://www.nngroup.com/articles/empty-state-interface-design/
- Tableau, "Best Practices for Effective Dashboards": https://help.tableau.com/current/pro/desktop/en-us/dashboards_best_practices.htm
- IBM Carbon: https://carbondesignsystem.com/data-visualization/dashboards/ , https://carbondesignsystem.com/patterns/filtering/ , https://carbondesignsystem.com/patterns/status-indicator-pattern/ , https://carbondesignsystem.com/patterns/empty-states-pattern/ , https://carbondesignsystem.com/data-visualization/color-palettes/
- Grafana dashboard best practices: https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/best-practices/ ; Google SRE book, ch. 6: https://sre.google/sre-book/monitoring-distributed-systems/
- Tufte on sparklines: https://www.edwardtufte.com/notebook/sparkline-theory-and-practice-edward-tufte/
- WCAG 2.2: https://www.w3.org/WAI/WCAG22/Understanding/use-of-color.html , https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html , https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html , https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html , https://www.w3.org/WAI/WCAG22/Understanding/pause-stop-hide.html
- W3C complex images tutorial: https://www.w3.org/WAI/tutorials/images/complex/ ; UK Government Analysis Function, charts and tables: https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/ , https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-tables/
- OWASP DOM based XSS Prevention Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html
- web.dev, Cumulative Layout Shift: https://web.dev/articles/cls ; MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors , https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion , https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric