Skip to content

Commit

Permalink
Add nice to scaleLinear utility functions (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
srallen authored Sep 17, 2020
1 parent 5dfc4d4 commit e73ae1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function transformXScale (data, transformMatrix, rangeParameters) {
xScale.invert((xScale(dataExtent.x[1]) - transformMatrix.translateX) / transformMatrix.scaleX)
],
range: xRange
})
}).nice()
}

export function transformYScale (data, transformMatrix, rangeParameters) {
Expand All @@ -136,5 +136,5 @@ export function transformYScale (data, transformMatrix, rangeParameters) {
yScale.invert((yScale(dataExtent.y[1]) - transformMatrix.translateY) / transformMatrix.scaleY)
],
range: yRange
})
}).nice()
}

0 comments on commit e73ae1f

Please sign in to comment.