Skip to content

Instantly share code, notes, and snippets.

@jensgrubert
jensgrubert / README.md
Last active January 7, 2019 19:02 — forked from mbostock/.block
D3.js Boxplot with Axes and Labels

A box-and-whisker plot with axes. Based on Mike Bostock's implementation. Instead of using individual svg elements as in Mike's implementation, here all boxplots are rendered with in one root element. This makes it easy to add axes.

Further differences between the two implementations are:

  • visibility of boxplot labels can be switched with the labels variable
  • CSV files are supported in which each column is an independent variable and each row contains measurements for all variables (see data.csv)
  • transitions are not used here but can be easily added again