Sheet
Density this run
The field is filled, not shaded. One series, one ink, one press mark.
Sheets
| Label | Sheets |
|---|---|
| Mon | 8 |
| Tue | 14 |
| Wed | 12 |
| Thu | 22 |
| Fri | 18 |
Shows change and magnitude with a filled first series. 1px grid and one optional spot color.
| Label | Sheets |
|---|---|
| Mon | 8 |
| Tue | 14 |
| Wed | 12 |
| Thu | 22 |
| Fri | 18 |
Density this run
The field is filled, not shaded. One series, one ink, one press mark.
Sheets
| Label | Sheets |
|---|---|
| Mon | 8 |
| Tue | 14 |
| Wed | 12 |
| Thu | 22 |
| Fri | 18 |
Three ways in. They share one source, so the pixels match whichever you pick.
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { AreaChart } from "@noorddev/vlak-react";Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/area-chart.
npx @noorddev/vlak-cli add area-chart
The StyleX leaf lands in components/vlak/ with its dependencies, for your own compiler to own. See StyleX.
npx shadcn add https://vlak.dev/r/area-chart.json
The same registry item, installed by shadcn's CLI.
<link rel="stylesheet" href="node_modules/@noorddev/vlak/css/vlak.css" />
No React. Link vlak.css and use the markup and classes below.
import { AreaChart } from "@noorddev/vlak-react";
<AreaChart
height={204}
labels={days}
series={[{ name: "Sheets", values: sheets }]}
unit="sheets"
annotations={[{ at: 3, label: "Press" }]}
/>Filled field. Same law as the line: hairlines, texture, one optional spot.
| Prop | Type | Default | Description |
|---|---|---|---|
seriesrequired | ChartSeries[] | ||
labels | string[] | ||
height | number | ||
stacked | boolean | ||
inverted | boolean | ||
grid | boolean | ||
ticks | number | ||
unit | string | ||
yLabel | string | ||
xLabel | string | ||
annotations | ChartAnnotation[] | ||
domain | [number, number] | ||
spot | string | boolean | ||
valueFormat | (value: number) => string | ||
locale | string | BCP 47 tag for number formatting; undefined is the reader's own. |
Also accepts HTMLAttributes<HTMLDivElement>.
| Keys | Does |
|---|---|
| Tab | Focuses the plot |
| Arrow right, Arrow left | Moves the cursor across the points; a status tooltip reads the values |
| Home, End | First or last point |
| Escape | Clears the cursor |
<div class="rs-chart"><svg viewBox="0 0 240 64" width="240" height="64"><path class="rs-chart-area" d="M0 44 L40 36 L80 40 L120 22 L160 26 L200 12 L240 16 L240 56 L0 56 Z"/><path class="rs-chart-line" d="M0 44 L40 36 L80 40 L120 22 L160 26 L200 12 L240 16"/></svg></div>