Vega-Lite Box Plot

A boxplot with full Tukey-style five-number summary (min, Q1, median, Q3, max) plus per-group outlier dots — and the entire thing is one line: `mark: 'boxplot'`. Vega-Lite computes every quartile internally from the raw values, draws the box, whiskers, median rule, and outlier ci

Template details

  • chart
  • boxplot
  • distribution
  • stats
  • vega
  • vega-lite

When to use this template

A box plot quickly reveals the central tendency, spread, and skewness of a quantitative distribution, making outliers immediately apparent. Analysts use it to compare these distributional characteristics across different categories or groups, identifying variations in performance, risk, or behavior.

  • One quantitative variable for distribution analysis.
  • One or more nominal or ordinal variables for grouping.
  • Data where spread, median, and quartiles are key insights.
  • Identifying outliers within distinct categories.
  • Comparing distributions of a metric across several groups.
  • Datasets with moderate group cardinality (too many groups become cluttered).

Browse all Koan templates