Box Plot Recipe

Tukey box plot of fuel economy by origin
Quartile boxes, medians, whiskers, and outlier points.

Minimal flow

Runnable: install ggaction and provide the named data array as plain row objects.

import { chart } from "ggaction";

const program = chart()
  .createCanvas()
  .createData({ values })
  .createBoxPlot({
    x: { field: "category", fieldType: "nominal" },
    y: { field: "value" },
    guides: { legend: false }
  });

You must decide

The library infers

Use whisker: { type: "minmax" } for observed minimum and maximum whiskers without an outlier layer. Use editBoxPlot to revise statistics, width, or component appearance through the stable box-plot owner.

Continue

Box-plot API · Bar marks · Error bars