Native Solid 2 fork of solid-recharts (MIT, © Thomas Guehenneux), derived from Recharts (MIT, © recharts). Adapted documentation; neither project endorses this fork.
ScatterChart
ScatterChart is the cartesian container for Scatter series (point clouds).
It owns the layout, scales, and interaction state; children like XAxis, YAxis,
CartesianGrid and Tooltip register themselves into it. A ZAxis can drive bubble sizes.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
data | object[] | — | Source data array, one entry per point |
width, height | number | — | Fixed size (omit when inside ResponsiveContainer) |
layout | "horizontal" | "vertical" | "horizontal" | Direction of the independent axis |
margin | { top, right, bottom, left } | { 5, 5, 5, 5 } | Space around the plot area |
onClick, onMouseMove, … | function | — | Chart-level mouse events with the active payload |
The base props follow the Recharts 3.9.2 ScatterChart API (reference commit b3451050) that solid-recharts tracks; see the Recharts ScatterChart reference. The next-suite release scope lists selected adaptations, not full Recharts 3.10.1 parity.
Notes
- Use numerical
XAxisandYAxiswithtype="number"for proper coordinate mapping. - Add a
ZAxisto drive bubble sizes via a data property. - The
ZAxisrangeprop sets the minimum and maximum bubble area in pixels (e.g.range={[100, 1000]}). - Multiple
Scatterchildren share the same axes unless you assign customxAxisId/yAxisId/zAxisId.
See also
- Scatter — the point series component
- XAxis · YAxis · ZAxis
- LineChart — similar cartesian layout for line series