Commit 3e508c56 authored by David van Leeuwen's avatar David van Leeuwen

Add y lines option for grid

parent d753daac
...@@ -2260,7 +2260,7 @@ ...@@ -2260,7 +2260,7 @@
// Y-Grid // Y-Grid
if (withY && __grid_y_show) { if (withY && __grid_y_show) {
ygrid = main.select('.ygrids').selectAll(".ygrid") ygrid = main.select('.ygrids').selectAll(".ygrid")
.data(y.ticks(10)); .data(y.ticks(__grid_y_lines));
ygrid.enter().append('line') ygrid.enter().append('line')
.attr('class', 'ygrid'); .attr('class', 'ygrid');
ygrid.attr("x1", __axis_rotated ? y : 0) ygrid.attr("x1", __axis_rotated ? y : 0)
......
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