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.
Histogram
Histogram with configurable bin width and optional density overlay. Recharts.
Installshow
viz add recharts/generic/histogram-v1No live preview — install to render
recharts/generic/violin-v1
Violin (KDE)
Kernel-density violin plots for distribution comparison across categories. Use when you want the full shape, not just summary statistics.
Installshow
viz add recharts/generic/violin-v1Density — single
KDE for a single continuous variable. Observable Plot.
Installshow
viz add plot/stats/density-basic-v1Density — overlay
Multiple KDEs overlaid for direct shape comparison.
Installshow
viz add plot/stats/density-overlay-v1Density — combined (histogram + density + rug)
Three views of the same distribution overlaid: histogram bars, density curve, rug plot of individual observations.
Installshow
viz add plot/stats/distribution-v1Split bar (subgroup highlight)
Horizontal bars with contrasting subgroup dots — bars show overall values, dots show subgroup breakdown. Highlights group differences within each category.
Installshow
viz add plot/stats/split-bar-v1Usageshow
import Component from '@/viz/components/recharts/generic/histogram-v1';
Metadata
- FrameworkRecharts
- CategoryDistributions
- Subcategorygeneric
- Source
recharts/generic/histogram-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.
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.
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.