paperchart — bytes chart
Stacked horizontal bars with an explicit gap that separates the first-load critical-path portion from the deferred portion. Each row has a title and a caption; each segment has a tag above or inside it with its size.
When to use
- Bundle size breakdowns.
- Critical-path vs deferred resource splits.
- Comparing how a single payload is delivered across two or more architectures.
Visual rules
- Solid segments sit on the critical path. Dashed segments are deferred and separated by a visible horizontal gap.
- "first-load critical path" and "deferred" band markers sit above the accented row, so the reader learns the convention from the accent example.
- Totals are printed on the right edge of each bar:
107 KB br · first-load critical path+0 KB deferred. - X axis is linear in KB and the caption ("bytes on the wire after brotli-11 compression, kilobytes") sits below the ticks.
How to use
- Edit
src/charts/BytesChart.tsx. - Rewrite
ROWS: each row hasgroup,caption,segments(withkb,fill,tag, optionaldashed),firstLoadKB,deferredKB, optionaldeferredGap. npm run dev, open/#/bytes.npm run snapto render toout/bytes.png.