Commit b829d1bc authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix xgrid

parent a503f34f
...@@ -935,8 +935,8 @@ ...@@ -935,8 +935,8 @@
xgrid.enter().append('line').attr("class", "xgrid") xgrid.enter().append('line').attr("class", "xgrid")
xgrid.exit().remove() xgrid.exit().remove()
main.selectAll(".xgrid") main.selectAll(".xgrid")
.attr("x1", x) .attr("x1", function(d){ return x(d) - xAxis.tickOffset(); })
.attr("x2", x) .attr("x2", function(d){ return x(d) - xAxis.tickOffset(); })
.attr("y1", margin.top) .attr("y1", margin.top)
.attr("y2", height) .attr("y2", height)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment