D3-graph-gallery
D3-graph-gallery copied to clipboard
Basic boxplot in d3.js "max" value is incorrect?
Hi, I was just looking at the code example for basic boxplot as provided in D3 graph gallery.
I noticed that "max" value for the boxplot is incorrect.
As far as I know, max('upper fence') is upper quartile + 1.5 * IQR.
However, the code in the example is var max = q1 + 1.5 * interQuantileRange
.
Perhaps it should be q3 + 1.5 * interQuantileRange
instead?