holtzy / D3-graph-gallery

A collection of simple graphics made with D3.js
https://www.d3-graph-gallery.com
MIT License
790 stars 237 forks source link

FIX #26, FIX #10: MISCALCULATING MIN AND MAX BARPLOT VALUES #34

Open tligier opened 3 years ago

tligier commented 3 years ago

What?

Calculate min and max values according to https://www.data-to-viz.com/caveat/boxplot.html. Previous values were calculated as if there would always be outliers values.

Why?

Fix #26 Fix #10

How?

Calculate the value for the lower whisker as max(minimum value, q1 - 1.5 IQR) Calculate the value for the upper whisker as min(maximum value, q3 + 1.5 IQR)