Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 5, 2021
1 parent f53d2ec commit 4917b06
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/report/reporters/boxplot/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,9 @@ const serializeBoxPlot = function ({

const positions = getPositions({ quantiles, minAll, maxAll, contentWidth })
const box = getBox({ positions, minBlockWidth, combinationTitles, mini })

if (mini) {
return box
}

const labels = getLabels({
positions,
titlesWidth,
minBlockWidth,
contentWidth,
})
const labels = mini
? ''
: getLabels({ positions, titlesWidth, minBlockWidth, contentWidth })
return `${box}${labels}`
}

Expand Down

0 comments on commit 4917b06

Please sign in to comment.