Bars drawn as ordered-dither cells, in the same Bayer step as Dither field. Real axes and tooltip, a keyboard that reads each bar.
Used for
- A weekly or monthly count where the shape matters more than the exact number
- Marketing and dashboards that share the look of the Dither field background
- Grouped or stacked series on a dark card
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: one datum per category, the key of the category field, and { key, label, color? } per series. The first series takes the accent.
- stacked
boolean- Default
false - Stack the series instead of grouping them.
- height / domain
number / [number, number]- Default
240 / data - Plot height in px and a fixed value range.
- axes
boolean- Default
true - Draw the y labels, the grid and the x labels. Off gives a small chart for a card; the tooltip, the keyboard and the data table stay.
- fill
"dither"|"dots"- Default
"dither" - dots draws every bar as a column of evenly spaced dots: faint dots for the empty part, solid dots for the value, the latest or hovered bar in full colour and the rest muted. Values of zero or more.
- dotsPerBar
number- Default
auto - fill="dots": dot columns per bar. 1 draws one column of dots per bar, so a chart of 40 bars is 40 thin columns.
- dotSize / dotGap
number / number- Default
- / 2 - fill="dots": dot diameter in px and the space between dots. Setting dotSize replaces pitch, whatever the bar width.
- highlight / dim
[number, number] / number- Default
- / 0.7 - fill="dots": bars start to end (inclusive) in the series colour, every other bar in the muted ink at dim opacity. Replaces the solid latest bar.
- dot / track
"round"|"square"|"rounded" / number- Default
"round" / 0.08 - fill="dots": the dot shape and the opacity of the empty dots. Set pitch to 6 for the distance between dot centres.
- format / formatX
(v) => string- Default
compact - Axis, tooltip and table text.
- legend
boolean- Default
more than one series - Legend that toggles series.
- 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: one datum per category, the key of the category field, and { key, label, color? } per series. The first series takes the accent. |
| stacked | boolean | false | Stack the series instead of grouping them. |
| height / domain | number / [number, number] | 240 / data | Plot height in px and a fixed value range. |
| axes | boolean | true | Draw the y labels, the grid and the x labels. Off gives a small chart for a card; the tooltip, the keyboard and the data table stay. |
| fill | "dither" | "dots" | "dither" | dots draws every bar as a column of evenly spaced dots: faint dots for the empty part, solid dots for the value, the latest or hovered bar in full colour and the rest muted. Values of zero or more. |
| dotsPerBar | number | auto | fill="dots": dot columns per bar. 1 draws one column of dots per bar, so a chart of 40 bars is 40 thin columns. |
| dotSize / dotGap | number / number | - / 2 | fill="dots": dot diameter in px and the space between dots. Setting dotSize replaces pitch, whatever the bar width. |
| highlight / dim | [number, number] / number | - / 0.7 | fill="dots": bars start to end (inclusive) in the series colour, every other bar in the muted ink at dim opacity. Replaces the solid latest bar. |
| dot / track | "round" | "square" | "rounded" / number | "round" / 0.08 | fill="dots": the dot shape and the opacity of the empty dots. Set pitch to 6 for the distance between dot centres. |
| format / formatX | (v) => string | compact | Axis, tooltip and table text. |
| legend | boolean | more than one series | Legend that toggles series. |
| 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
- 01Paints bars as dither cells: solid at the top, a half-tone at the base, in the accent and series colours.
- 02Keeps axes, labels and the tooltip as real text; arrow keys read each bar and a data table is there for screen readers.
- 03Lets the legend turn a series off; the scale and the bars ease together.
- 04Redraws the canvas only when the data, the size or the theme changes.
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 weekly or monthly count on a card that shares the Dither field look.
- Grouped or stacked bars where the shape matters more than exact values.
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 Bar Chart to my app and wire it to my own data.
- I need a weekly or monthly count on a card that shares the Dither field look. Set that up with the Knowns UI Dither Bar Chart.
- Which Dither Bar 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-bar-chart" }) and search_docs({ query: "dither bar chart" }). Pro props, full examples and source come back once your license key is in the MCP config.