Dither Stack
For parts of a total over time, like revenue by plan. Each series is a band in its own ink with a solid ridge along its top and a stipple thinning down toward the band below, and a one-cell gap between bands, so they read apart even without colour. It prints in from the left the first time it's seen and eases to new data. Point at it, or focus it and use the arrow keys, for every series' value and the total at that point.
Needs: None. Canvas 2D.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| series | { label: string; values: number[] }[] | required | The series, bottom of the stack first, each with a value per point, oldest first. |
| labels | string[] | – | A short name for each point, like “MAR”, read when you point at it. |
| format | (value: number) => string | – | How a value reads. |
| height | number | 220 | Height of the plot in px. It fills its container's width. |
| tones | string[] | – | A colour for each series, in order. The library's series colours by default. |
| cell | number | 3 | Size of one dither cell in px. |
| label | string | "Stacked area" | What the chart shows, for screen readers. |
| className | string | – | Class on the chart. |
| style | CSSProperties | – | Style on the chart. |