Skip to content
Distributions

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.

6 variants
Theme

Histogram with configurable bin width and optional density overlay. Recharts.

Installshow
viz add recharts/generic/histogram-v1

No 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-v1
Theme

Density — single

KDE for a single continuous variable. Observable Plot.

Installshow
viz add plot/stats/density-basic-v1
Theme

Density — overlay

Multiple KDEs overlaid for direct shape comparison.

Installshow
viz add plot/stats/density-overlay-v1
Theme

Density — 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-v1
Theme

Split 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-v1
Usageshow
TypeScript
import Component from '@/viz/components/recharts/generic/histogram-v1';

Metadata

  • FrameworkRecharts
  • CategoryDistributions
  • Subcategorygeneric
  • Sourcerecharts/generic/histogram-v1
distribution histogram violin kde density

Dependencies

recharts