Commit 8656efac authored by David van Leeuwen's avatar David van Leeuwen

Set __grid_y_ticks as option

parent 3e508c56
......@@ -115,7 +115,8 @@
__grid_y_show = getConfig(['grid', 'y', 'show'], false),
// not used
// __grid_y_type = getConfig(['grid', 'y', 'type'], 'tick'),
__grid_y_lines = getConfig(['grid', 'y', 'lines'], null);
__grid_y_lines = getConfig(['grid', 'y', 'lines'], null),
__grid_y_ticks = getConfig(['grid', 'y', 'ticks'], 10);
// point - point of each data
var __point_show = getConfig(['point', 'show'], true),
......@@ -2260,7 +2261,7 @@
// Y-Grid
if (withY && __grid_y_show) {
ygrid = main.select('.ygrids').selectAll(".ygrid")
.data(y.ticks(__grid_y_lines));
.data(y.ticks(__grid_y_ticks));
ygrid.enter().append('line')
.attr('class', 'ygrid');
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