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.
Dual axis
Two y-axes with recession indicators and time-range selection. For comparing two metrics with different scales.
Installshow
viz add recharts/generic/timeseries-dual-axis-v1Indexed comparison
Indexed comparison normalized to a base period (base=100), with recession bands. For comparing growth rates.
Installshow
viz add recharts/generic/timeseries-index-v1Economic with brush selector
Recession-shaded with a brush selector for time-range filtering.
Installshow
viz add recharts/generic/timeseries-economic-v1Usageshow
import Component from '@/viz/components/recharts/generic/timeseries-dual-axis-v1';
Metadata
- FrameworkRecharts
- CategoryTime series
- Subcategorygeneric
- Source
recharts/generic/timeseries-dual-axis-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.
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.
Distributions
The distribution family: histogram, violin, KDE density (single / overlay / combined), and split bar. Use a histogram when bin counts matter, a density plot when the shape matters, a violin when you want both shape and summary, and a split bar to highlight a subgroup difference within each category.
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).
Used in data stories
Live ctzn.pub articles built with this chart shape.