Skip to content

Commit

Permalink
adopt arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 10, 2021
1 parent d9cab26 commit c78aab5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ function number(scale) {
function center(scale, offset) {
offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
if (scale.round()) offset = Math.round(offset);
return function(d) {
return +scale(d) + offset;
};
return d => +scale(d) + offset;
}

function entering() {
Expand Down

0 comments on commit c78aab5

Please sign in to comment.