D3-graph-gallery icon indicating copy to clipboard operation
D3-graph-gallery copied to clipboard

Basic boxplot in d3.js "max" value is incorrect?

Open harplife opened this issue 4 years ago • 0 comments

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?

harplife avatar May 14 '20 04:05 harplife