Scatter Cloud
A point cloud with an optional y=x parity line, a binned-mean summary line, and quadrant annotations. Use it for rank-rank or before/after relationships where the reader should see both the dispersion and the central tendency.
Scatter Cloud
Installshow
viz add d3/stats/scatter-cloud-v1Props
| Prop | Type | Description |
|---|---|---|
data | ScatterCloudData | { points: {x, y, label?, group?}[], xLabel?, yLabel?, xDomain?, yDomain?, parityLine?, annotations?, note?, tickPrefix?, title?, subtitle?, source? }. |
See full TypeScript interface on GitHub for all props.
Usageshow
import ScatterCloud from '@/viz/components/d3/stats/scatter-cloud-v1';
Metadata
- FrameworkD3 / SVG
- CategoryRegression & effects
- Source
d3/stats/scatter-cloud-v1
Dependencies
Related Components
GSS Wording Experiments
A two-panel composite for visualizing GSS split-ballot wording experiments. The top panel shows pooled-across-years estimates by a moderator (party, race, age) as a paired-dot "dumbbell" plot — one dot per wording, connected by a gap label in percentage points. The bottom panel is the 1984–2024 time-trend with both wordings overlaid and design-adjusted 95% CIs. Built around the canonical "natfare" (welfare) vs "natfarey" (assistance to the poor) experiment, but the data shape generalizes to any GSS NAT___ / NAT___Y pair.
Scatter + regression
Scatterplots with OLS regression line, 95% confidence band, and R² display. Four flavors: a generic Recharts version built for European Social Survey data, plus three Observable Plot variants tuned for health-survey two-variable plots (basic, faceted by a third variable, regression overlay).
County Choropleth
A US county choropleth rendered as inline SVG from a caller-supplied TopoJSON, with theme diverging or sequential ramps, state borders, and a hover tooltip. Use it for print-quality county maps in articles; for zoomable, high-cardinality maps reach for the MapLibre engine instead.
County Choropleth (diverging)
The county choropleth tuned for residual / above-or-below maps: a diverging color scale centered on a reference value (the national mean or zero), so counties read as positive vs. negative at a glance. Same component as County Choropleth — just a centered three-stop domain. Derived from the diverging county maps across the birth_death + Politics data stories (e.g. two-despairs, merchant-right-county-residuals).
Used in data stories
Live ctzn.pub articles built with this chart shape.
+4 more stories