Skip to content

Commit

Permalink
Straight line when tickSizeOuter is 0. Closes d3#32
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Mar 30, 2017
1 parent 05e55d6 commit d391ba8
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 d391ba8

Please sign in to comment.