Histogram
Histogram with automatic binning algorithms. Analyzes the distribution of a single metric by grouping values into bins and displaying their frequency.
Category: charts · Maturity: stable
Installation
npx @plexus/cli add histogram-chartUsage
import { HistogramChart } from '@plexus/ui'
function DistributionView({ values }) {
return (
<HistogramChart
data={values}
binMethod="freedman-diaconis"
color="#3b82f6"
xAxis={{ label: 'Temperature (°C)' }}
yAxis={{ label: 'Frequency' }}
width={800}
height={400}
/>
)
}Binning Algorithms
| Algorithm | Description |
|---|---|
sturges | Default. Uses ceil(log2(n) + 1) bins. Good for roughly normal data. |
scott | Bin width = 3.5 * std / n^(1/3). Optimal for normally distributed data. |
freedman-diaconis | Bin width = 2 * IQR / n^(1/3). Robust to outliers. |
fixed | Specify an exact number of bins with the bins prop. |
Performance
| Spec | Value |
|---|---|
| Max data points | 50,000+ |
| Target FPS | 60 |
| Typical memory | ~30 MB |
| Renderer | WebGPU (WebGL2 fallback) |
Aerospace Use Cases
- Sensor distribution analysis — Examine the spread of temperature, pressure, or vibration readings across a test session
- Quality control — Verify that manufactured components fall within tolerance bands
- Anomaly detection — Identify bimodal or skewed distributions that indicate sensor drift or failure modes