Skip to Content
drksci
System

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

Line chartLine chart, 12 points from 9:00 to 20:00, 2 series; vertical axis Requests per hour. Search: 410 at 9:00, 290 at 20:00, lowest 290 at 20:00, highest 940 at 13:00. Checkout: 120 at 9:00, 80 at 20:00, lowest 80 at 20:00, highest 395 at 13:00.02004006008001,00010:0012:0014:0016:0018:0020:00Requests per hourlaunchlimit
  • Search
  • Checkout
Line chart: data
hourSearchCheckout
9:00410120
10:00520150
11:00610210
12:00880340
13:00940395
14:00760310
15:00640240
16:00590205
17:00700280
18:00520190
19:00380110
20:0029080
Figure 1Requests per hour on the two routes, 09:00 to 20:00. The dashed line is the limit; the hatched band is the launch window.

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

Line chartLine chart with areas, 8 points from 0 to 35, 1 series; horizontal axis Minutes since start; vertical axis Megabytes. Resident memory: 120 at 0, 455 at 35, lowest 120 at 0, highest 455 at 35.010020030040050005101520253035Minutes since startMegabytes
Line chart: data
minuteResident memory
0120
5180
10260
15
20410
25440
30452
35455
Figure 2Resident memory of the worker in megabytes, sampled every five minutes, with a gap where the probe was down.

Bar chart

Grouped by default. A pattern per series is the second channel.

Scores rose on every task but parsing

Bar chartBar chart, 5 bars from Sort to Route, 2 series; vertical axis Score. before: 61 at Sort, 80 at Route, lowest 48 at Plan, highest 80 at Route. after: 74 at Sort, 88 at Route, lowest 63 at Plan, highest 88 at Route.020406080100SortParsePlanRecallRouteScore61747270486355668088
  • before
  • after
Bar chart: data
taskbeforeafter
Sort6174
Parse7270
Plan4863
Recall5566
Route8088
Figure 3Task score before and after the change, out of 100.

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

Bar chartStacked Horizontal bar chart, 4 bars from Week 1 to Week 4, 3 series; horizontal axis Failed runs. Timeout: 14 at Week 1, 6 at Week 4, lowest 6 at Week 4, highest 14 at Week 1. Parse error: 6 at Week 1, 2 at Week 4, lowest 2 at Week 4, highest 7 at Week 2. Auth: 2 at Week 1, 1 at Week 4, lowest 1 at Week 2, highest 4 at Week 3.0510152025Failed runsWeek 1Week 2Week 3Week 4
  • Timeout
  • Parse error
  • Auth
Bar chart: data
weekTimeoutParse errorAuth
Week 11462
Week 21171
Week 3934
Week 4621
Figure 4Failed runs by cause and week, counted over the four weeks of the trial.

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

Bar chartHorizontal bar chart, 6 bars from WebAssembly on a VM, extraction only to Marketplace actor, large, 3 series. Extraction only: $0.47 at WebAssembly on a VM, extraction only, $0.82 at Serverless function, extraction only, lowest $0.47 at WebAssembly on a VM, extraction only, highest $0.82 at Serverless function, extraction only. With a browser: $16.02 at Headless browser on a VM, $33.97 at Headless browser, serverless, lowest $16.02 at Headless browser on a VM, highest $33.97 at Headless browser, serverless. Everything included: $300 at Marketplace actor, small, $3.7k at Marketplace actor, large, lowest $300 at Marketplace actor, small, highest $3.7k at Marketplace actor, large.$0.10$1.00$10.00$100$1.0k$10.0kWebAssembly on a VM, extraction onlyServerless function, extraction onlyHeadless browser on a VMHeadless browser, serverlessMarketplace actor, smallMarketplace actor, large$0.47$0.82$16.02$33.97$300$3.7k
  • Extraction only
  • With a browser
  • Everything included
Bar chart: data
nameExtraction onlyWith a browserEverything 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
Bar chartHorizontal bar chart, 6 bars from WebAssembly on a VM, extraction only to Marketplace actor, large, 3 series. Extraction only: $0.47 at WebAssembly on a VM, extraction only, $0.82 at Serverless function, extraction only, lowest $0.47 at WebAssembly on a VM, extraction only, highest $0.82 at Serverless function, extraction only. With a browser: $16.02 at Headless browser on a VM, $33.97 at Headless browser, serverless, lowest $16.02 at Headless browser on a VM, highest $33.97 at Headless browser, serverless. Everything included: $300 at Marketplace actor, small, $3.7k at Marketplace actor, large, lowest $300 at Marketplace actor, small, highest $3.7k at Marketplace actor, large.$0.10$1.00$10.00$100$1.0k$10.0kWebAssembly on a VM, extraction onlyServerless function, extraction onlyHeadless browser on a VMHeadless browser, serverlessMarketplace actor, smallMarketplace actor, large$0.47$0.82$16.02$33.97$300$3.7k
  • Extraction only
  • With a browser
  • Everything included
Bar chart: data
nameExtraction onlyWith a browserEverything 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
Figure 5Estimated cost per million records, dollars on a log scale; the fill is the group.

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

Dot plotDot plot, 5 rows from Small to Code-tuned, 2 series; horizontal axis Pass rate, percent. before: 41% at Small, 60% at Code-tuned, lowest 41% at Small, highest 68% at Large. after: 58% at Small, 79% at Code-tuned, lowest 58% at Small, highest 79% at Code-tuned.40%50%60%70%80%Pass rate, percentSmallMediumLargeDistilledCode-tuned
  • before
  • after
Dot plot: data
modelbeforeafter
Small41%58%
Medium55%66%
Large68%72%
Distilled49%63%
Code-tuned60%79%
Figure 6Pass rate on the held-out set before and after tuning, per model, percent.

Histogram

Values counted into round-edged bins. Pass one list, or named lists to overlay.

Slow runs make a second hump

HistogramHistogram, 15 bins from 12 to 14 to 40 to 42, 2 series; horizontal axis Seconds; vertical axis Runs. Fast: 4 at 12 to 14, 0 at 40 to 42, lowest 0 at 24 to 26, highest 12 at 14 to 16. Slow: 0 at 12 to 14, 1 at 40 to 42, lowest 0 at 12 to 14, highest 6 at 30 to 32.02468101212141618202224262830323436384042SecondsRunsbudget
  • Fast
  • Slow
Histogram: data
BinFastSlow
12 to 1440
14 to 16120
16 to 1880
18 to 2030
20 to 2220
22 to 2410
24 to 2601
26 to 2802
28 to 3004
30 to 3206
32 to 3402
34 to 3602
36 to 3801
38 to 4001
40 to 4201
Figure 7Run time in seconds across 200 runs, fast and slow hosts overlaid.

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

Scatter plotScatter plot of 12 points in 3 groups; Input tokens from 200 to 3,200, Latency, seconds from 0.6 to 13.1. Groups: Small (4), Medium (4), Large (4).0246810121405001,0001,5002,0002,5003,0003,500Input tokensLatency, seconds
  • Small
  • Medium
  • Large
Scatter plot: data
PointInput tokensLatency, secondsmodel
200, 0.62000.6Small
800, 1.18001.1Small
1,600, 1.91,6001.9Small
3,200, 3.43,2003.4Small
200, 1.42001.4Medium
800, 2.68002.6Medium
1,600, 4.11,6004.1Medium
3,200, 6.93,2006.9Medium
200, 2.62002.6Large
800, 4.88004.8Large
1,600, 8.21,6008.2Large
3,200, 13.13,20013.1Large
Figure 8Latency against input size for three models, point area by cost per call.

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

HeatmapHeatmap, 4 rows by 5 columns (Sort, Parse, Plan, Recall, Route); rows Small to Distilled. Values run from 0.38 to 0.93; darker is more. The highest is 0.93 at Large, Route.SmallMediumLargeDistilled0.620.710.380.450.800.740.700.550.520.860.880.840.710.600.930.690.660.470.500.84SortParsePlanRecallRoute0.001.00
Heatmap: data
modelSortParsePlanRecallRoute
Small0.620.710.380.450.80
Medium0.740.700.550.520.86
Large0.880.840.710.600.93
Distilled0.690.660.470.500.84
Figure 9Score of each model on each task, out of 1. Darker is higher.

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

RouteRequestsErrorsLast eight weeks
Search4,81012
Checkout1,92031
Account6403

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

Line chartLine chart with areas, 4 points from 0 to 0.05, 1 series; vertical axis against coupling k. accuracy: 0.845 at 0, 0.86 at 0.05, lowest 0.845 at 0, highest 0.86 at 0.05.0.70.750.80.850.900.0030.0140.05against coupling kflat
Line chart: data
kaccuracy
00.845
0.0030.85
0.0140.85
0.050.86
Line chartLine chart, 4 points from 100 to 100000, 2 series; horizontal axis Hz; vertical axis against frequency. a: 2 at 100, 0.1 at 100000, lowest 0.1 at 100000, highest 2 at 100. b: 0.5 at 100, 0.2 at 100000, lowest 0.2 at 100000, highest 0.9 at 1000.00.511.52100100010000100000Hzagainst frequency
  • a
  • b
Line chart: data
fab
10020.5
10001.40.9
100000.40.6
1000000.10.2
  1. 01 Sweepone setting changed at a time.
  2. 02 Responsea log frequency axis, two conditions in one pen.
Figure 10Accuracy against two knobs; the dashed line is chance, and the hatched area is the gain over raw samples.

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

Bar chartHorizontal bar chart, 2 bars from raw samples to reservoir, 2 series. raw: 0.72 at raw samples, 0.72 at raw samples, lowest 0.72 at raw samples, highest 0.72 at raw samples. res: 0.995 at reservoir, 0.995 at reservoir, lowest 0.995 at reservoir, highest 0.995 at reservoir.00.20.40.60.81raw samplesreservoir0.720.995
Bar chart: data
armrawres
raw samples0.72
reservoir0.995
  • chance
  • ± 1 sd
Figure 11Mean over three seeds with one standard deviation.

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

ClaimHeldEffect
Caching cuts latency38
Retries fix timeouts-4
Smaller prompts keep accuracy12
Tuning transfers to new tasksn/a
Each claim of the trial against the check that tested it.

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

  1. Run startedstart
  2. First page fetched
    Forty-one links found on the index.
  3. Rate limit reachedwarn
    The scraper backs off for ninety seconds.
  4. Cache hits counted twicenote
  5. Second pass expected
Times are the worker's clock.