Box plot chart

Compare the distribution of groups in a box plot chart (box and whisker) from raw observations, with quartiles, whiskers, outliers and n per group.

React
import { BoxChart } from 'boardplot/react/box';
Use for
Spread per group · Outliers by team or region · Response times by service
Not for
Precomputed quartiles; box takes raw observations and computes them.

Deal-size spread by region

Box plot, type7+tukey1.5. DACH: n = 120, Q1 47, median 98, Q3 234, whiskers 40 to 489, 1 outliers. Nordics: n = 80, Q1 94, median 133, Q3 171, whiskers 55 to 210. Benelux: n = 64, Q1 77, median 107, Q3 136, whiskers 48 to 165. Iberia: n = 48, Q1 61, median 88, Q3 114, whiskers 35 to 140. UK & Ireland: n = 300, Q1 65, median 98, Q3 187, whiskers 60 to 360. Whisker rule: tukey; values outside it are outliers: observations beyond Q1 − 1.5×IQR or Q3 + 1.5×IQR. DACH's top quartile alone spans wider than the entire Nordics distribution Closed-won deal size in $k · FY26 year to date Source: Illustrative CRM extract 0 100 200 300 400 780 Deal size, $k n = 64 n = 120 n = 48 n = 80 n = 300 Benelux DACH Iberia Nordics UK & Ireland 107 Median 98 88 133 98

Box plots of closed-won deal size for five regions with sample sizes; DACH has a long right tail with an axis break and one outlier at 780, and a median of 98.

Download SVG Fixture IDdeal-size-by-region
JSON spec

This spec includes the theme shown and the options you selected.

Changed from the fixture: options.size from the report frame to the width of the site frame.

{
  "type": "box",
  "data": {
    "groups": [
      {
        "id": "dach",
        "label": "DACH",
        "observations": [
          40,
          40,
          40,
          40,
          40,
          40,
          40.1,
          40.1,
          40.1,
          40.2,
          40.3,
          40.4,
          40.5,
          40.6,
          40.7,
          40.9,
          41.1,
          41.3,
          41.6,
          41.9,
          42.2,
          42.5,
          42.9,
          43.3,
          43.8,
          44.3,
          44.8,
          45.4,
          46,
          46.7,
          47.4,
          48.1,
          48.9,
          49.8,
          50.7,
          51.7,
          52.7,
          53.8,
          55,
          56.2,
          57.5,
          58.8,
          60.2,
          61.7,
          63.3,
          64.9,
          66.6,
          68.3,
          70.2,
          72.1,
          74.1,
          76.2,
          78.4,
          80.6,
          83,
          85.4,
          87.9,
          90.6,
          93.3,
          96.1,
          99,
          102,
          105.1,
          108.3,
          111.6,
          115,
          118.5,
          122.1,
          125.8,
          129.7,
          133.6,
          137.7,
          141.9,
          146.2,
          150.6,
          155.2,
          159.8,
          164.6,
          169.5,
          174.6,
          179.8,
          185.1,
          190.5,
          196.1,
          201.8,
          207.6,
          213.6,
          219.8,
          226,
          232.4,
          239,
          245.7,
          252.6,
          259.6,
          266.7,
          274,
          281.5,
          289.1,
          296.9,
          304.9,
          313,
          321.2,
          329.7,
          338.3,
          347.1,
          356,
          365.1,
          374.4,
          383.9,
          393.5,
          403.3,
          413.3,
          423.5,
          433.9,
          444.4,
          455.2,
          466.1,
          477.2,
          488.5,
          780
        ]
      },
      {
        "id": "nordics",
        "label": "Nordics",
        "observations": [
          55,
          57,
          58.9,
          60.9,
          62.8,
          64.8,
          66.8,
          68.7,
          70.7,
          72.7,
          74.6,
          76.6,
          78.5,
          80.5,
          82.5,
          84.4,
          86.4,
          88.4,
          90.3,
          92.3,
          94.2,
          96.2,
          98.2,
          100.1,
          102.1,
          104.1,
          106,
          108,
          109.9,
          111.9,
          113.9,
          115.8,
          117.8,
          119.7,
          121.7,
          123.7,
          125.6,
          127.6,
          129.6,
          131.5,
          133.5,
          135.4,
          137.4,
          139.4,
          141.3,
          143.3,
          145.3,
          147.2,
          149.2,
          151.1,
          153.1,
          155.1,
          157,
          159,
          160.9,
          162.9,
          164.9,
          166.8,
          168.8,
          170.8,
          172.7,
          174.7,
          176.6,
          178.6,
          180.6,
          182.5,
          184.5,
          186.5,
          188.4,
          190.4,
          192.3,
          194.3,
          196.3,
          198.2,
          200.2,
          202.2,
          204.1,
          206.1,
          208,
          210
        ]
      },
      {
        "id": "benelux",
        "label": "Benelux",
        "observations": [
          48,
          49.9,
          51.7,
          53.6,
          55.4,
          57.3,
          59.1,
          61,
          62.9,
          64.7,
          66.6,
          68.4,
          70.3,
          72.1,
          74,
          75.9,
          77.7,
          79.6,
          81.4,
          83.3,
          85.1,
          87,
          88.9,
          90.7,
          92.6,
          94.4,
          96.3,
          98.1,
          100,
          101.9,
          103.7,
          105.6,
          107.4,
          109.3,
          111.1,
          113,
          114.9,
          116.7,
          118.6,
          120.4,
          122.3,
          124.1,
          126,
          127.9,
          129.7,
          131.6,
          133.4,
          135.3,
          137.1,
          139,
          140.9,
          142.7,
          144.6,
          146.4,
          148.3,
          150.1,
          152,
          153.9,
          155.7,
          157.6,
          159.4,
          161.3,
          163.1,
          165
        ]
      },
      {
        "id": "iberia",
        "label": "Iberia",
        "observations": [
          35,
          37.2,
          39.5,
          41.7,
          43.9,
          46.2,
          48.4,
          50.6,
          52.9,
          55.1,
          57.3,
          59.6,
          61.8,
          64,
          66.3,
          68.5,
          70.7,
          73,
          75.2,
          77.4,
          79.7,
          81.9,
          84.1,
          86.4,
          88.6,
          90.9,
          93.1,
          95.3,
          97.6,
          99.8,
          102,
          104.3,
          106.5,
          108.7,
          111,
          113.2,
          115.4,
          117.7,
          119.9,
          122.1,
          124.4,
          126.6,
          128.8,
          131.1,
          133.3,
          135.5,
          137.8,
          140
        ]
      },
      {
        "id": "uki",
        "label": "UK & Ireland",
        "observations": [
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60,
          60.1,
          60.1,
          60.1,
          60.1,
          60.1,
          60.1,
          60.1,
          60.2,
          60.2,
          60.2,
          60.2,
          60.2,
          60.3,
          60.3,
          60.3,
          60.4,
          60.4,
          60.4,
          60.5,
          60.5,
          60.6,
          60.6,
          60.7,
          60.7,
          60.8,
          60.8,
          60.9,
          61,
          61,
          61.1,
          61.2,
          61.2,
          61.3,
          61.4,
          61.5,
          61.6,
          61.7,
          61.8,
          61.9,
          62,
          62.1,
          62.2,
          62.3,
          62.4,
          62.5,
          62.7,
          62.8,
          62.9,
          63.1,
          63.2,
          63.4,
          63.5,
          63.7,
          63.8,
          64,
          64.2,
          64.4,
          64.5,
          64.7,
          64.9,
          65.1,
          65.3,
          65.5,
          65.7,
          66,
          66.2,
          66.4,
          66.7,
          66.9,
          67.1,
          67.4,
          67.6,
          67.9,
          68.2,
          68.5,
          68.7,
          69,
          69.3,
          69.6,
          69.9,
          70.2,
          70.6,
          70.9,
          71.2,
          71.6,
          71.9,
          72.3,
          72.6,
          73,
          73.4,
          73.7,
          74.1,
          74.5,
          74.9,
          75.3,
          75.8,
          76.2,
          76.6,
          77.1,
          77.5,
          78,
          78.4,
          78.9,
          79.4,
          79.9,
          80.4,
          80.9,
          81.4,
          81.9,
          82.5,
          83,
          83.5,
          84.1,
          84.7,
          85.2,
          85.8,
          86.4,
          87,
          87.6,
          88.2,
          88.9,
          89.5,
          90.1,
          90.8,
          91.5,
          92.1,
          92.8,
          93.5,
          94.2,
          94.9,
          95.7,
          96.4,
          97.1,
          97.9,
          98.6,
          99.4,
          100.2,
          101,
          101.8,
          102.6,
          103.4,
          104.3,
          105.1,
          106,
          106.8,
          107.7,
          108.6,
          109.5,
          110.4,
          111.3,
          112.3,
          113.2,
          114.2,
          115.1,
          116.1,
          117.1,
          118.1,
          119.1,
          120.1,
          121.2,
          122.2,
          123.3,
          124.4,
          125.5,
          126.5,
          127.7,
          128.8,
          129.9,
          131.1,
          132.2,
          133.4,
          134.6,
          135.8,
          137,
          138.2,
          139.4,
          140.7,
          141.9,
          143.2,
          144.5,
          145.8,
          147.1,
          148.4,
          149.8,
          151.1,
          152.5,
          153.9,
          155.3,
          156.7,
          158.1,
          159.5,
          161,
          162.5,
          163.9,
          165.4,
          166.9,
          168.5,
          170,
          171.5,
          173.1,
          174.7,
          176.3,
          177.9,
          179.5,
          181.1,
          182.8,
          184.5,
          186.1,
          187.8,
          189.5,
          191.3,
          193,
          194.8,
          196.5,
          198.3,
          200.1,
          202,
          203.8,
          205.7,
          207.5,
          209.4,
          211.3,
          213.2,
          215.1,
          217.1,
          219.1,
          221,
          223,
          225,
          227.1,
          229.1,
          231.2,
          233.3,
          235.4,
          237.5,
          239.6,
          241.7,
          243.9,
          246.1,
          248.3,
          250.5,
          252.7,
          255,
          257.3,
          259.5,
          261.8,
          264.2,
          266.5,
          268.9,
          271.2,
          273.6,
          276,
          278.5,
          280.9,
          283.4,
          285.8,
          288.3,
          290.9,
          293.4,
          296,
          298.5,
          301.1,
          303.7,
          306.4,
          309,
          311.7,
          314.4,
          317.1,
          319.8,
          322.5,
          325.3,
          328.1,
          330.9,
          333.7,
          336.6,
          339.4,
          342.3,
          345.2,
          348.1,
          351.1,
          354,
          357,
          360
        ]
      }
    ]
  },
  "options": {
    "showObservations": "small-n",
    "title": "DACH's top quartile alone spans wider than the entire Nordics distribution",
    "subtitle": {
      "measure": "Closed-won deal size",
      "period": "FY26 year to date"
    },
    "unit": "$k",
    "source": "Illustrative CRM extract",
    "valueAxis": {
      "show": true,
      "gridlines": true
    },
    "axisTitles": {
      "primary": "Deal size, $k"
    },
    "boxValues": "median",
    "highlight": [
      "dach",
      "nordics"
    ],
    "size": {
      "width": 1000
    }
  }
}

Median order value over two years

Box plot, type7+tukey1.5. FY21: n = 5, Q1 80, median 100, Q3 120, whiskers 60 to 140. FY23: n = 5, Q1 120, median 144, Q3 168, whiskers 96 to 192. Whisker rule: tukey; values outside it are outliers: observations beyond Q1 − 1.5×IQR or Q3 + 1.5×IQR. Median order value grew 20% annually Source: Illustrative order values 50 100 150 200 Order value, $ n = 5 n = 5 FY23 FY21 144 Median 100 Median FY21–FY23: +20% p.a.

Two box plots of order value for FY21 and FY23 (n = 5 each); the median grows from 100 to 144, marked as 20% a year.

Download SVG Fixture IDdated-median-growth
JSON spec

This spec includes the theme shown and the options you selected.

{
  "type": "box",
  "data": {
    "groups": [
      {
        "id": "before",
        "label": "FY21",
        "date": "2021-12-31",
        "observations": [
          60,
          80,
          100,
          120,
          140
        ]
      },
      {
        "id": "after",
        "label": "FY23",
        "date": "2023-12-31",
        "observations": [
          96,
          120,
          144,
          168,
          192
        ]
      }
    ]
  },
  "options": {
    "title": "Median order value grew 20% annually",
    "unit": "$",
    "source": "Illustrative order values",
    "valueAxis": {
      "show": true
    },
    "axisTitles": {
      "primary": "Order value, $"
    },
    "annotations": [
      {
        "id": "growth",
        "kind": "cagr",
        "from": "before",
        "to": "after"
      }
    ]
  }
}

Minimal spec

Save this spec as box.json and run the command.

{
  "type": "box",
  "data": {
    "groups": [
      { "id": "north", "label": "North", "observations": [4, 5, 6, 7, 8, 10] },
      { "id": "south", "label": "South", "observations": [3, 4, 5, 6, 7, 9] }
    ]
  },
  "options": {
    "unit": "days",
    "title": "North has a higher median delivery time",
    "source": "Illustrative data"
  }
}
npx boardplot render box.json --out box.svg