Line
Change and progress over ordered samples as a line or area chart.
One dot per item, placed by two numeric measures, like accounts by monthly revenue and support tickets. Optional groups by colour and dot size by a third value.
One dot per item, placed by two numeric measures, to show how they relate and which items break the pattern. Optional groups by colour, and dot size by a third value.
Accounts by monthly revenue and support tickets, one group.
Last 30 days
Tickets mostly rise with revenue; the dots off that line are the accounts to look at. Hover or Tab into the chart and use the arrow keys to move from dot to dot, left to right. Change over time stays LineChart; comparing categories stays BarChart.
import { Scatter } from "agentic-ds-kit";From contracts/scatterchart.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| data | array | Yes | — | One row per item. Rows without a finite x and y are left out. |
| xLabel | string | Yes | — | Names the horizontal measure, like Monthly revenue. Shown under the x axis, in the tooltip and the table. |
| yLabel | string | Yes | — | Names the vertical measure, like Support tickets. Shown above the y axis, in the tooltip and the table. |
| size | fixed | value | No | fixed | fixed draws every dot the same size. value sizes each dot by its size field, by area (square root), so a dot with four times the value has twice the width. |
| sizeLabel | string | No | Size | Names the size value in the tooltip and the table, like Seats. Only used with size value. |
| valueFormatter | object | No | — | Each defaults to the chart format: 1,240, 12.4k, 1.2M on axes, the full value in the tooltip and table. |
| title | string | No | — | Chart heading on the frame, like the other charts. Also names the plot for screen readers. |
| description | string | No | — | — |
| height | number | No | 280 | — |
| isLoading | boolean | No | false | The chart frame shows its loading skeleton in place of the plot. Same as LineChart. |
| error | string | No | — | When set, the plot is replaced by the kit's "Couldn't load" row (role=alert) with this message. Same as LineChart. |
| onRetry | function | No | — | Shows an outline Retry Button on the error row. |
| actions | slot | No | — | Kit Buttons in the chart header, before the Table toggle, like an icon-only Ask. ghost sm reads quietest. Setting it draws the frame even with no title. |
Change and progress over ordered samples as a line or area chart.
Compare magnitudes across categories with vertical or horizontal bars.
A ranked list: each row shows a label and its value, with a quiet horizontal bar behind the label sized against the largest value or the total.
Part-to-whole share for a handful of segments, as a donut or solid pie.