Skip to content

Commit

Permalink
Update src/axis.js
Browse files Browse the repository at this point in the history
Pass function rather than manually calling

Co-authored-by: Mike Bostock <[email protected]>
  • Loading branch information
IPWright83 and mbostock authored Apr 6, 2022
1 parent ffc36a7 commit a3e89d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function axis(orient, scale) {
.attr("transform", function(d) { return transform(position(d) + offset); });

line
.attr(x + "2", function(d, i) { return tickSizeFunction ? tickSizeFunction(d, i) : k * tickSizeInner });
.attr(x + "2", tickSizeFunction == null ? k * tickSizeInner : tickSizeFunction);

text
.attr(x, k * spacing)
Expand Down

0 comments on commit a3e89d2

Please sign in to comment.