Skip to content

Data visualization

How to show numbers in charts people can read.

Tattva charts are drawn in SVG with no chart library. You can read them without color and without a mouse. Every chart comes with a written summary and a table view. This page covers how to pick a chart, the colors, the sizes, the accessibility rules and ready-made dashboards for tracking an AI assistant.

Preview as

Lines also differ by dash and marker, so color is not the only clue.

Palette

Always used in this order. Amber is never a data color.

series 1
series 2
series 3
series 4
series 5
neutral
seq 1
seq 2
seq 3
seq 4
seq 5
neg
mid
pos

Lines

Four lines, each with its own dash and marker.

  • Opus
  • Sonnet
  • Haiku
  • Other

Bars

One bar stands out, the rest stay gray.

Choosing a chart

Start with the question the reader has. Polaris advises that each chart should answer one specific question. The list below is our own proposal built on that idea.

QuestionUseComponent
How is one measure changing over time?Line chart. Solid for real data, dotted for forecasts.
How do categories compare?Bars that start at zero. Highlight one bar when it is the point.
How is a whole split into parts?Stacked bar with up to four parts. No pie or donut charts.
What is the number now, and how did it move?A tile showing the change, not a chart.
What is the trend in a tiny space?Sparkline with the last point highlighted.
How sure are we about this estimate?A dot with a range line, and a caption that names the range.
Which exact values are there?A table.

Mailchimp and GitLab Pajamas discourage pie charts. Mailchimp recommends a percent bar. Tattva follows that and has no pie or donut. The UK Analysis Function says to use many lines on one chart only when you must, and to prefer a row of small charts instead. So a line chart stops at five lines.

The colors

Color rules

Sizes and parts

Accessibility rules

Honest charts and uncertainty

Dashboards and key numbers

Live examples

What we could not verify

Sources

Build your next AI screen with Tattva.

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

Get started