From e101f89b935b27ceb4a8ac35595d479b9598ee4c Mon Sep 17 00:00:00 2001 From: Harry Shoff Date: Tue, 9 Jul 2019 14:53:55 -0400 Subject: [PATCH] [stats] fix horizontal boxplot in @vx/stats --- packages/vx-boxplot/src/boxplots/BoxPlot.js | 2 +- packages/vx-stats/src/boxplot/BoxPlot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vx-boxplot/src/boxplots/BoxPlot.js b/packages/vx-boxplot/src/boxplots/BoxPlot.js index abdbc9482..950edcab8 100644 --- a/packages/vx-boxplot/src/boxplots/BoxPlot.js +++ b/packages/vx-boxplot/src/boxplots/BoxPlot.js @@ -125,7 +125,7 @@ export default function BoxPlot({ if (horizontal) { boxplot.max = verticalToHorizontal(boxplot.max); boxplot.maxToThird = verticalToHorizontal(boxplot.maxToThird); - boxplot.box.y1 = valueScale(firstQuartile) + boxplot.box.y1 = valueScale(firstQuartile); boxplot.box = verticalToHorizontal(boxplot.box); boxplot.median = verticalToHorizontal(boxplot.median); boxplot.minToFirst = verticalToHorizontal(boxplot.minToFirst); diff --git a/packages/vx-stats/src/boxplot/BoxPlot.js b/packages/vx-stats/src/boxplot/BoxPlot.js index 63bf84e26..950edcab8 100644 --- a/packages/vx-stats/src/boxplot/BoxPlot.js +++ b/packages/vx-stats/src/boxplot/BoxPlot.js @@ -125,8 +125,8 @@ export default function BoxPlot({ if (horizontal) { boxplot.max = verticalToHorizontal(boxplot.max); boxplot.maxToThird = verticalToHorizontal(boxplot.maxToThird); - boxplot.box = verticalToHorizontal(boxplot.box); boxplot.box.y1 = valueScale(firstQuartile); + boxplot.box = verticalToHorizontal(boxplot.box); boxplot.median = verticalToHorizontal(boxplot.median); boxplot.minToFirst = verticalToHorizontal(boxplot.minToFirst); boxplot.min = verticalToHorizontal(boxplot.min);