Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
Fix #130.
Browse files Browse the repository at this point in the history
Thanks to @espinielli for the suggestion!
  • Loading branch information
jasondavies committed Oct 10, 2015
1 parent 41bbd13 commit dc6cdc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bullet/bullet.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ d3.bullet = function() {
wrap.attr("transform", "rotate(90)translate(0," + -width + ")");
} else {
extentX = width, extentY = height;
wrap.attr("transform", "translate(0)");
wrap.attr("transform", null);
}

// Compute the new x-scale.
Expand Down Expand Up @@ -103,7 +103,8 @@ d3.bullet = function() {

var axis = g.selectAll("g.axis").data([0]);
axis.enter().append("g").attr("class", "axis");
axis.call(xAxis.scale(x1));
axis.attr("transform", vertical ? null : "translate(0," + extentY + ")")
.call(xAxis.scale(x1));
});
d3.timer.flush();
}
Expand Down

0 comments on commit dc6cdc1

Please sign in to comment.