Box Plot
Response times of 40 sampled requests to each of six API endpoints over the last hour, as boxes with the quartiles, the median, whiskers and outliers.
Pick a preset to reconfigure every chart
Only in the paid edition
The box plot series (type: 'box-plot') is part of AG Charts Enterprise.
What to look for
- What goes in. The Unovis
Boxplotdraws the statistics you give it (median,quartilesandwhiskers), so the demo computes them from the samples with the helper indata.ts, and the boxes can show any summary you like. Recharts has no box plot: its docs example draws one from the same precomputed statistics, with a ranged bar, an error bar and a scatter. Chart.js (with the @sgratzl/chartjs-chart-boxplot plugin), ECharts (with itsboxplotdataset transform), Nivo, Observable Plot, Vega-Lite and TanStack Charts compute the statistics from the raw samples. - Whiskers. Unovis, Recharts, Chart.js, Observable Plot, Vega-Lite and TanStack Charts end the whiskers at the last sample within 1.5 × IQR of the box. ECharts ends them at the 1.5 × IQR bound itself, so some of its whiskers are longer than the data they cover. Nivo's whiskers are fixed quantiles, the 10th and 90th percentiles by default, and it draws no outliers.
- Outliers. The Unovis
Boxplotdoesn't draw outliers: aScatterin the same container does. ECharts and Recharts draw them as a separate scatter series too; Chart.js, Observable Plot, Vega-Lite and TanStack Charts draw them as part of the box plot. - Hover. The Unovis crosshair shows a box's statistics anywhere in its column. Chart.js, ECharts, Nivo, Vega-Lite
and TanStack Charts show them over the box itself. Vega-Lite's box tooltip lists the min and max of all the samples,
outliers included, and the whiskers have a tooltip of their own. Observable Plot's
boxYwould open one tip per part of the box, each with a single value, so its demo adds onePlot.tipper box with the statistics from thedata.tshelper. - Presets. Colors (
color) is one every library but TanStack Charts can draw: itsboxYtakes a single fill for all the boxes. The ECharts and Recharts demos keep the outliers in one color: they're a separate series, so coloring them per box takes a color callback (ECharts'itemStyle.color) or aCellper outlier (Recharts). Min–max whiskers (whiskers) takesextent: 'min-max'in Vega-Lite,boundIQR: 'none'in ECharts,coef: 0in the Chart.js plugin and quantiles of 0 and 1 in Nivo; Observable Plot and TanStack Charts always draw Tukey whiskers. Rounded boxes (roundedCorners) works in Recharts, Nivo, Observable Plot (rx) and Vega-Lite (cornerRadius); the Chart.js plugin, ECharts and TanStack Charts have no corner radius for boxes.
Feature comparison
| Feature | Unovis1.8.0 | Recharts3.10.1 | Chart.js4.5.1 | ECharts6.1.0 | Nivo0.99.0 | AG Charts14.2.0 | Observable Plot0.6.17 | Vega-Lite6.5.0 | TanStack Charts1.1.0 |
|---|---|---|---|---|---|---|---|---|---|
| Box plot | |||||||||
| Tooltip | |||||||||
| Wrapping / trimming long axis labels | |||||||||
| Animated data updates | |||||||||
| Dark mode |
Every cell links to its source. See how we compare for the rules we followed.