Charts
The shared charts, key, tooltip, event list and table marks, each shown on real-looking data.
An article that shows data uses these and writes no chart code of its own. Each
chart is one server-rendered SVG on the plot kit, drawn in the site's pens,
weights and type, and usable from MDX as it stands. They take the shape of
Tremor's charts (data, index, categories, colors, valueFormatter)
restyled wholly on the site's tokens.
Every series is told apart by more than colour. A line has a dash and a point
shape, a bar a fill (solid, hatch, dots, cross or a dither density), so a chart
reads in one ink and in a greyscale print. Each chart is one image with a
title and a description written from its data, a tooltip that answers to the
pointer and to the arrow keys, and its numbers in a hidden table for assistive
technology. A wide drawing keeps its size in a narrow column and scrolls; a
narrow prop gives it a second drawing for a phone.
Line chart
A line per column, a numeric index on a true scale, a target as a reference line and the days of interest as a band. Hover the chart, or tab to it and use the arrow keys.
Requests per hour stay under the limit except at the peak
- Search
- Checkout
| hour | Search | Checkout |
|---|---|---|
| 9:00 | 410 | 120 |
| 10:00 | 520 | 150 |
| 11:00 | 610 | 210 |
| 12:00 | 880 | 340 |
| 13:00 | 940 | 395 |
| 14:00 | 760 | 310 |
| 15:00 | 640 | 240 |
| 16:00 | 590 | 205 |
| 17:00 | 700 | 280 |
| 18:00 | 520 | 190 |
| 19:00 | 380 | 110 |
| 20:00 | 290 | 80 |
With area, each line hatches down to the baseline; with curve="step" it
steps; with a short index the points are marked. A line with gaps breaks at
them unless connectNulls is set.
Memory climbs to a plateau
| minute | Resident memory |
|---|---|
| 0 | 120 |
| 5 | 180 |
| 10 | 260 |
| 15 | |
| 20 | 410 |
| 25 | 440 |
| 30 | 452 |
| 35 | 455 |
Bar chart
Grouped by default. A pattern per series is the second channel.
Scores rose on every task but parsing
- before
- after
| task | before | after |
|---|---|---|
| Sort | 61 | 74 |
| Parse | 72 | 70 |
| Plan | 48 | 63 |
| Recall | 55 | 66 |
| Route | 80 | 88 |
type="stacked" stacks the series, type="percent" stacks to a hundred
percent, and layout="horizontal" lays the bars across with the names down the
side.
Most failures are timeouts
- Timeout
- Parse error
- Auth
| week | Timeout | Parse error | Auth |
|---|---|---|---|
| Week 1 | 14 | 6 | 2 |
| Week 2 | 11 | 7 | 1 |
| Week 3 | 9 | 3 | 4 |
| Week 4 | 6 | 2 | 1 |
A log axis carries values that run over orders of magnitude, and long names move above their bars when the drawing is narrow: this one has a second drawing for a phone.
Extraction costs a few dollars where the actors cost thousands
- Extraction only
- With a browser
- Everything included
| name | Extraction only | With a browser | Everything included |
|---|---|---|---|
| WebAssembly on a VM, extraction only | $0.47 | ||
| Serverless function, extraction only | $0.82 | ||
| Headless browser on a VM | $16.02 | ||
| Headless browser, serverless | $33.97 | ||
| Marketplace actor, small | $300 | ||
| Marketplace actor, large | $3.7k |
- Extraction only
- With a browser
- Everything included
| name | Extraction only | With a browser | Everything included |
|---|---|---|---|
| WebAssembly on a VM, extraction only | $0.47 | ||
| Serverless function, extraction only | $0.82 | ||
| Headless browser on a VM | $16.02 | ||
| Headless browser, serverless | $33.97 | ||
| Marketplace actor, small | $300 | ||
| Marketplace actor, large | $3.7k |
Dot plot
One dot per series on a shared axis, joined across a row: the gap reads where bars would hide it, and the axis need not start at zero.
Every model gained, some by a lot
- before
- after
| model | before | after |
|---|---|---|
| Small | 41% | 58% |
| Medium | 55% | 66% |
| Large | 68% | 72% |
| Distilled | 49% | 63% |
| Code-tuned | 60% | 79% |
Histogram
Values counted into round-edged bins. Pass one list, or named lists to overlay.
Slow runs make a second hump
- Fast
- Slow
| Bin | Fast | Slow |
|---|---|---|
| 12 to 14 | 4 | 0 |
| 14 to 16 | 12 | 0 |
| 16 to 18 | 8 | 0 |
| 18 to 20 | 3 | 0 |
| 20 to 22 | 2 | 0 |
| 22 to 24 | 1 | 0 |
| 24 to 26 | 0 | 1 |
| 26 to 28 | 0 | 2 |
| 28 to 30 | 0 | 4 |
| 30 to 32 | 0 | 6 |
| 32 to 34 | 0 | 2 |
| 34 to 36 | 0 | 2 |
| 36 to 38 | 0 | 1 |
| 38 to 40 | 0 | 1 |
| 40 to 42 | 0 | 1 |
Scatter
Two numeric columns, split into series by a column and sized by another. Each point answers to the pointer, to its nearest neighbour.
Bigger inputs cost more, and the large model costs most
- Small
- Medium
- Large
| Point | Input tokens | Latency, seconds | model |
|---|---|---|---|
| 200, 0.6 | 200 | 0.6 | Small |
| 800, 1.1 | 800 | 1.1 | Small |
| 1,600, 1.9 | 1,600 | 1.9 | Small |
| 3,200, 3.4 | 3,200 | 3.4 | Small |
| 200, 1.4 | 200 | 1.4 | Medium |
| 800, 2.6 | 800 | 2.6 | Medium |
| 1,600, 4.1 | 1,600 | 4.1 | Medium |
| 3,200, 6.9 | 3,200 | 6.9 | Medium |
| 200, 2.6 | 200 | 2.6 | Large |
| 800, 4.8 | 800 | 4.8 | Large |
| 1,600, 8.2 | 1,600 | 8.2 | Large |
| 3,200, 13.1 | 3,200 | 13.1 | Large |
Heatmap
A grid in which tone, printed as ordered dither in one pen, carries the value. The ramp under it names the lowest and the highest; the cells can carry their values.
Retrieval is the weak task for every model
| model | Sort | Parse | Plan | Recall | Route |
|---|---|---|---|---|---|
| Small | 0.62 | 0.71 | 0.38 | 0.45 | 0.80 |
| Medium | 0.74 | 0.70 | 0.55 | 0.52 | 0.86 |
| Large | 0.88 | 0.84 | 0.71 | 0.60 | 0.93 |
| Distilled | 0.69 | 0.66 | 0.47 | 0.50 | 0.84 |
Spark
A sparkline sits in a line of text or a table cell. The last month of requests is up by half, and the error rate down by three quarters. Each one has a name that reads its range to a screen reader.
Routes at a glance
| Route | Requests | Errors | Last eight weeks |
|---|---|---|---|
| Search | 4,810 | 12 | |
| Checkout | 1,920 | 31 | |
| Account | 640 | 3 |
Several charts, one figure
ChartRow sets two or three charts side by side in a wide column and one above
the other in a narrow one, and Ledger is the numbered key under them. Each
chart carries its own panel title in yLabel. A line chart takes a log axis
for a numeric index (xScale="log", ticks at the powers of ten, or at 1, 2 and
5 over a short span), the settings of a sweep spaced evenly (categorical), an
area from a chosen level (areaFrom, the gain over a baseline), words beside a
point (notes), and a dash and a point shape per series.
Two sweeps of one device
| k | accuracy |
|---|---|
| 0 | 0.845 |
| 0.003 | 0.85 |
| 0.014 | 0.85 |
| 0.05 | 0.86 |
- a
- b
| f | a | b |
|---|---|---|
| 100 | 2 | 0.5 |
| 1000 | 1.4 | 0.9 |
| 10000 | 0.4 | 0.6 |
| 100000 | 0.1 | 0.2 |
- 01 Sweepone setting changed at a time.
- 02 Responsea log frequency axis, two conditions in one pen.
A grouped bar chart takes error bars (errors, the column holding each
half-width) and a dashed tick across each row (rowMarks, chance for that
task), and a Legend item with whisker names them.
Three tasks
| arm | raw | res |
|---|---|---|
| raw samples | 0.72 | |
| reservoir | 0.995 |
- chance
- ± 1 sd
Key
A key in HTML for any chart or plate, in the same pens, patterns, dashes and shapes the drawing uses. The charts above carry their own; use this beside a plate a piece drew itself.
- Observed412
- Expected
- Baseline
- Outlier
- Group A
Tooltip
ChartTip is the tooltip the charts use, and it wraps any SVG plate: give the
places that answer as tips in the drawing's own coordinates, and the card
shows on hover, touch and focus. It is one tab stop; the arrow keys, Home and
End step through the places and the current one is read out. The card lives
inside its wrapper, not on the page body, so it still shows inside the player
in full screen.
Table marks
A Mark in a cell says what holds, what fails and what was not scored, by
shape: a filled dot, a hollow one, a dashed ring. numeric aligns number
columns in tabular figures.
Which claims held up
| Claim | Held | Effect |
|---|---|---|
| Caching cuts latency | 38 | |
| Retries fix timeouts | -4 | |
| Smaller prompts keep accuracy | 12 | |
| Tuning transfers to new tasks | n/a |
Event list
A dated list for a replay's notes or a feed. A filled dot happened, a dashed ring is expected, a struck one was withdrawn.
Run notes
- Run startedstart
- First page fetchedForty-one links found on the index.
- Rate limit reachedwarnThe scraper backs off for ninety seconds.
- Cache hits counted twicenote
- Second pass expected