Skip to content

Commit

Permalink
Improve histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 26, 2021
1 parent 2031df6 commit edfa5bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/report/reporters/histogram/abscissa.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@ const getLabelLine = function ({
median,
medianIndex,
}) {
const tickLength = getTickLength()
const centeredMedian = centerString(
median.prettyColor,
medianIndex,
contentWidth + tickLength * 2,
contentWidth,
)
const initialSpace = ' '.repeat(titlesWidth + minBlockWidth - tickLength)
const initialSpace = ' '.repeat(titlesWidth + minBlockWidth)
return `${initialSpace}${centeredMedian}\n`
}

0 comments on commit edfa5bc

Please sign in to comment.