D3-graph-gallery
D3-graph-gallery copied to clipboard
Booxplot bug
Hi Yan,
You don’t know me but I was just looking at this example:
https://www.d3-graph-gallery.com/graph/boxplot_basic.html
I am pretty sure that the ends of the boxplot whiskers are generally calculated differently in the statistics profession. I recall that the top whisker is at the 90th percentile and the bottom whisker represents the 10th percentile. In the D3 example these values seem a bit arbitrary and not related to the data.
So I’d recommend this code instead var min = d3.quantile(data_sorted, .1); var max = d3.quantile(data_sorted, .9);
Just some friendly feedback.
Otherwise the graphs and code examples are really helpful and a great resource.
Thanks. Ross.