Choose a table or chart
Match the view to the question people need to answer with the data.
Does the reader need exact values or a pattern?
Choose a table when people need to scan exact values, compare named records, or locate a particular row. Choose a chart when the relationship, change, distribution, or part-to-whole pattern matters more than reading every exact value. Many analytical pages need both: a chart to orient, then a table for exact inspection.
| Reader task | View | Watch for |
|---|---|---|
| Find a named record and read its fields | Table | Keep headers meaningful and row structure predictable. |
| Edit cells or act on selected records | Data Grid | Define edit, selection, and pending-save behavior. |
| Compare change over time | Line or area chart | Explain the time interval and units. |
| Compare categories | Bar chart | Use legible labels and a deliberate ordering. |
| Inspect a distribution | Histogram or box plot | State the grouping or statistical summary. |
A chart is not automatically clearer than a table. A table is not a chart with less styling. Pick the view that answers the question, and keep units, ranges, missing values, and date scope explicit. For dense data, let users reach the exact values through a table or accessible data view where the chart alone is insufficient.
When do I need a grid instead of a table?
Use Table for records read across rows, with native table semantics. Its data composition can add sorting, filtering and selection. Use Data grid when the task needs spreadsheet navigation, cell selection and editing. Each interaction adds a contract: who owns edited values, when changes are committed, and how errors are shown. Do not add grid behavior just to make a static table look like a spreadsheet.
Ghost documents Charts as configurable visualizations and Charts for its data and rendering model. The chart layer uses its documented charting dependencies; do not imply that a charting library is required for a table. For broader organization, see Blocks, which distinguishes reusable product tasks from component examples.
Who owns sorting, filtering, and export?
A view can render the state it receives, but the application usually owns query policy and data loading. Decide whether filtering is local or server-side, what sorting means for null or formatted values, and whether export uses the current result set or all matching records. Show the active scope to prevent a misleading export. Keep selection stable when records update by using stable row identities, not display positions.
Do not infer progress from a row count or show a percentage unless total work is known. While data loads, retain context; on failure, expose retry only when the caller can perform it. A local demo can show sorting or editing behavior without claiming to save to a server.
Why does a chart or table seem misleading?
Check that labels, units, date interval, ordering, and scale match the question. A truncated axis may emphasize a small difference; an aggregate can hide outliers. For tables, verify that headers identify the column and that responsive layout does not detach values from their labels. If a chart's exact values matter, provide a readable complementary view rather than expecting people to estimate pixels.
Install the component source through Installation; use the component page's recipe as the source of truth for props and dependencies. Styling follows theme, component, and example ownership. For inspiration, ReUI and Untitled UI offer their own product and data patterns; their design choices do not establish Ghost's implementation or performance.