Charts
Scatter chart
Correlation. Dots, bubbles, or a bloom on each point.
Props
| Property | Type | Default | Description |
|---|---|---|---|
data | ChartDatum[] | — | Points with numeric x and y. Optional z for bubble size. |
xKey | string | "x" | Horizontal numeric field. |
yKey | string | "y" | Vertical numeric field. |
zKey | string | "z" | Used only by the bubble variant. |
variant | "dots" | "bubble" | "glow" | "field" | "dots" | Equal dots, sized bubbles, or a bloom on each point. |
config | ChartConfig | — | Color and label for yKey. |
className | string | — | Chart container. Default height is 220px. |