Skip to content

Commit

Permalink
Merge pull request #476 from hshoff/harry-fix-horiz-boxplot
Browse files Browse the repository at this point in the history
[stats] fix horizontal boxplot in @vx/stats
  • Loading branch information
hshoff committed Jul 9, 2019
2 parents 86e3a6f + e101f89 commit c472afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vx-boxplot/src/boxplots/BoxPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/vx-stats/src/boxplot/BoxPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c472afd

Please sign in to comment.