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 cd51903 commit 905567b
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 @@ -5,10 +5,9 @@ import { TICK_MIDDLE, HORIZONTAL_LINE } from './characters.js'
// Retrieve the horizontal line and the abscissa below the main content.
// Includes the tick above the median and its label.
export const getAbscissa = function (width, median, medianIndex) {
const bottomLine = getBottomLine(width, medianIndex)
const bottomLine = separatorColor(getBottomLine(width, medianIndex))
const labels = getLabels(width, median, medianIndex)
return `${separatorColor(bottomLine)}
${labels}`
return `${bottomLine}\n${labels}`
}

const getBottomLine = function (width, medianIndex) {
Expand Down

0 comments on commit 905567b

Please sign in to comment.