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).
ESS — Recharts
Recharts scatter with OLS line, 95% CI band, R² display. Works on any two-variable continuous data.
Installshow
viz add recharts/ess/scatter-regression-v1Health — basic (Plot)
Two-variable scatter for health-survey data in Observable Plot.
Installshow
viz add plot/health/health-scatter-basic-v1Health — faceted
Same scatter, faceted across a third variable (e.g. by state or demographic group).
Installshow
viz add plot/health/health-scatter-faceted-v1Health — with OLS + CI
OLS line, 95% CI band, R² display layered over the basic health scatter.
Installshow
viz add plot/health/health-scatter-regression-v1Usageshow
import { ScatterRegression } from '@/viz/components/recharts/ess/scatter-regression-v1';Metadata
- FrameworkRecharts
- CategoryRegression & effects
- Subcategoryess
- Source
recharts/ess/scatter-regression-v1
Dependencies
Related Components
Time trends
Line charts for showing how a quantity changes over time. Six variants from generic to survey-flavored: a simple (year, value) series with optional confidence intervals, the GSS demographic-split chart with presidential-term reference areas, an indexed mode that rebases every series to 100 at a baseline year, a metadata-panel layout, a small-multiples grid, and an Observable Plot rendering.
Economic Time Series
FRED-style economic time series with recession-band shading. Three flavors covering the common use cases: dual-axis comparison for metrics on different scales, index-rebased comparison for relative growth, and economic-shaded with a brush selector for time-range filtering.
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.
Demographic breakdowns
Three chart shapes (line, bar, dot) for showing one outcome across five demographic axes — Age, Education, Income, Race, Gender — from a single dataset shape. Includes the multi-panel composite for showing the same outcome on all five axes side-by-side with consistent scales.
Used in data stories
Live ctzn.pub articles built with this chart shape.
+4 more stories