A solid pixel line over a half-tone area, drawn as dither cells. Pointer and arrow keys read each point.
Used for
- A trend over days or weeks with one or two series
- A latency or usage line on a card that sits over a dither background
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- data / x / series
ChartDatum[] / string / ChartSeries[]- As in Chart. Missing values are gaps.
- area
boolean- Default
true - Dither the area under each line.
- smooth
boolean- Default
false - Round the line.
- height / domain / format / formatX / legend
-- As in Dither bar chart.
- label
string- Names the chart for screen readers and the data table caption.
- pitch
number- Default
4 - Cell size in CSS px. A whole number of device pixels, so it stays crisp at 1x and 2x.
- Motion
-- A data change eases for 280ms (slow) with the in-out curve. The first render, a resize and reduced motion are instant.
| Prop | Type | Default | Description |
|---|---|---|---|
| data / x / series | ChartDatum[] / string / ChartSeries[] | - | As in Chart. Missing values are gaps. |
| area | boolean | true | Dither the area under each line. |
| smooth | boolean | false | Round the line. |
| height / domain / format / formatX / legend | - | - | As in Dither bar chart. |
| label | string | - | Names the chart for screen readers and the data table caption. |
| pitch | number | 4 | Cell size in CSS px. A whole number of device pixels, so it stays crisp at 1x and 2x. |
| Motion | - | - | A data change eases for 280ms (slow) with the in-out curve. The first render, a resize and reduced motion are instant. |
What it handles
- 01Draws a solid pixel line over a half-tone area that fades to the baseline.
- 02Smooths on request; gaps in the data stay gaps.
- 03Reads each point on pointer and arrow keys, with a data table for screen readers.
- 04Eases the line to new values over 280ms.
States
- Data changes
- Marks ease from the old values to the new, once
- 280ms, in-out
- Pointer or arrow key
- Reads the item in a tooltip and announces it
- 120ms fade
- Resize
- Redraws at the new size, no easing
- none
- Reduced motion
- Values jump; nothing eases
- 0ms
| State | What moves | Timing |
|---|---|---|
| Data changes | Marks ease from the old values to the new, once | 280ms, in-out |
| Pointer or arrow key | Reads the item in a tooltip and announces it | 120ms fade |
| Resize | Redraws at the new size, no easing | none |
| Reduced motion | Values jump; nothing eases | 0ms |
Works with
When to use
When to use
- A trend with one or two series on a dark card.
- A latency or usage line that sits beside a dither background.
When not to use
- Many series or fine detail: the cells are coarse: use Chart.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Dither Line Chart to my app and wire it to my own data.
- I need a trend with one or two series on a dark card. Set that up with the Knowns UI Dither Line Chart.
- Which Dither Line Chart props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "dither-line-chart" }) and search_docs({ query: "dither line chart" }). Pro props, full examples and source come back once your license key is in the MCP config.