Skip to content

StatTile

Stable

One big number with how it changed, an optional tiny trend line and an optional limit.

Also known as statistic, stat, kpi, metric

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

A row of shop numbers

Typical wait

28 min

down, -4.1%bettervs previous 7 days

Longest waits

77 min

up, +6.0%worsevs previous 7 days

Time to answer the phone

41 s

down, -2.8%bettervs previous 7 days

Orders

18.4K

up, +9.2%vs previous 7 days

Refunds paid

$1,240

up, +5.1%worsevs previous 7 days

Refund rate

0.8%

down, -0.2 ptsbettervs previous 7 days

Happy customers

92.5%

up, +1.5 ptsbettervs last survey

Likely between 88.1% and 95.4%, from 200 customers

Seven tiles for a shop dashboard. For wait time, sales cost and refunds, lower is better. The happy-customer tile shows its range and sample size.

When to use it

One headline number with how it changed. The change says "better" or "worse" in words, and you choose which direction is good, so a drop in wait time reads as good news.

Made of: Name · Action chip · Big number · Trend line · Change · Detail line · Limit scale

Use it for

  • A row of the few numbers that matter most, above the charts.
  • A number with its change since the last period.
  • A number measured against a limit or target, shown on a small scale.

Not for

  • A change over time that people need to read point by point: use LineChart.
  • Comparing several amounts: use BarChart.
  • How much of an allowance is used or left: use UsageMeter.

Do and avoid

Orders this week

128

up, +9%bettervs last week

Do. A name, one number and the change from last week.

128

Avoid. A bare number does not say what it counts or if it is good.

Do

  • Say which direction is good on every tile, so lower-is-better numbers read correctly.
  • Say what the change is compared to, such as the previous 7 days.
  • For rates from small groups, show the range or group size in the detail line.
  • Put one row of tiles above the charts for the numbers that matter most.

Avoid

  • Don't use amber for a number that just got worse. Amber means a person must act.
  • Don't rely on color for the change. The arrow, the plus or minus and the word "better" or "worse" carry the meaning.
  • Don't draw a chart with one bar when a tile says it.
  • Don't add labels to the trend line. The tile's number and change say it.

On a phone

  • The tile fills the width of its container and the value breaks onto a new line instead of overflowing.
  • The sparkline stays at its own size on the right and the text on the left shrinks first.
  • Nothing in the tile needs hover or a tap.

Seen in products

  • Company blogs about monitoring AI products show dashboards with slowest response times, volume, cost per model and error rate, and treat time to the first word as a key measure.
  • They list typical and slowest response times by model with a count of requests, and quality measures such as test pass rate and user feedback.
  • Carbon's dashboards guidance prioritizes data by hierarchy.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started