Commit 93f9853b authored by Masayuki Tanaka's avatar Masayuki Tanaka

Hide x grid on 0

parent 20007e60
...@@ -1449,7 +1449,8 @@ ...@@ -1449,7 +1449,8 @@
.attr("x1", function (d) { return x(d) - xAxis.tickOffset(); }) .attr("x1", function (d) { return x(d) - xAxis.tickOffset(); })
.attr("x2", function (d) { return x(d) - xAxis.tickOffset(); }) .attr("x2", function (d) { return x(d) - xAxis.tickOffset(); })
.attr("y1", margin.top) .attr("y1", margin.top)
.attr("y2", height); .attr("y2", height)
.style("opacity", function () { return d3.select(this).attr('x1') === 0 ? 0 : 1; });
} }
if (__grid_x_lines) { if (__grid_x_lines) {
xgridLine = main.selectAll(".xgrid-lines"); xgridLine = main.selectAll(".xgrid-lines");
......
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