Histogram
Chart
An auto-binned frequency distribution: pass raw sample values and the chart bins them into nice-edged uniform buckets (Sturges' rule by default, bins to override) and draws contiguous bars on a numeric axis. Press or scrub a bar to inspect its range and count. The accessible name lists every bin with its bounds and tally.
Playground
Every control sets a real prop of HistogramProps. The JSX below updates as you go.
Web
iOS
Android
JSX · HistogramProps
Variants
2 examples from src/charts/histogram/histogram.md, each rendered live from its own JSX.
Anatomy
1
Chart frame
2
Bins
3
Axis labels
4
Baseline
5
Gridlines
Dimmed parts appear only in some states or variants.
Props
16 props on HistogramProps, grouped as they are declared in source. Required props are marked *.
Accessibility and keyboard
Keyboard
Tab
Focuses the plot
ArrowLeft
ArrowRight
Steps through points when inspectable
Escape
Clears the inspected point
Semantics
Roles
group
image
img
ARIA on web
aria-label
From the docs
An auto-binned frequency distribution: pass raw sample values and the chart bins them into nice-edged uniform buckets (Sturges' rule by default, bins to override) and draws contiguous bars on a numeric axis. Press or scrub a bar to inspect its range and count. The accessible name lists every bin with its bounds and tally.
Platform skins
The playground's props on each platform: same tree, native shapes, type and touch sizes.
Usage
Tokens
Read from the playground render. Values follow the scheme and the ion hue.
--c1
--fd
--fm
--ft
--ln
--ln2
--sf
--sh-sm
--tx3