Skip to content

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

Open
tligier wants to merge 2 commits into
holtzy:masterfrom
tligier:master
Open

FIX #26, FIX #10: MISCALCULATING MIN AND MAX BARPLOT VALUES#34
tligier wants to merge 2 commits into
holtzy:masterfrom
tligier:master

Conversation

@tligier

@tligier tligier commented Oct 1, 2020

Copy link
Copy Markdown

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)

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.
@tligier tligier changed the title FIX #26: MISCALCULATING MIN AND MAX BARPLOT VALUES FIX #26, FIX #10: MISCALCULATING MIN AND MAX BARPLOT VALUES Oct 1, 2020
Documentation changed to correspond to the "Categorical color scale" example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant