Skip to content

Commit

Permalink
Straight line when tickSizeOuter === 0. Closes d3#32
Browse files Browse the repository at this point in the history
  • Loading branch information
curran authored Mar 30, 2017
1 parent 06929e6 commit 4eecb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function axis(orient, scale) {

path
.attr("d", orient === left || orient == right
? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter
: "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter);
? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + (tickSizeOuter ? "H" + k * tickSizeOuter : "")
: "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + (tickSizeOuter ? "V" + k * tickSizeOuter : "");

tick
.attr("opacity", 1)
Expand Down

0 comments on commit 4eecb61

Please sign in to comment.