Boxplot
import { BoxplotChart } from '@arshad-shah/swift-chart';
new BoxplotChart('#chart').setData([ { label: 'auth', min: 12, q1: 18, median: 22, q3: 28, max: 38, outliers: [55] },]);// Pass raw arrays — SwiftChart computes quartiles + Tukey whiskers for you.new BoxplotChart('#chart').setData( [{ label: 'auth', samples: [12, 14, 18, 19, 22, 25, 28, 33, 41, 55] }], { y: 'samples' },);import { Boxplot } from '@arshad-shah/swift-chart/react';
<Boxplot data={latencyBoxes} theme="midnight" height={300} />Reference
- Class:
BoxplotChart - React component:
Boxplot - Helper:
fiveNumberSummary— Tukey-whisker quartile stats over any numeric sample.