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

Add y lines option for grid

parent d753daac
......@@ -2260,7 +2260,7 @@
// Y-Grid
if (withY && __grid_y_show) {
ygrid = main.select('.ygrids').selectAll(".ygrid")
.data(y.ticks(10));
.data(y.ticks(__grid_y_lines));
ygrid.enter().append('line')
.attr('class', 'ygrid');
ygrid.attr("x1", __axis_rotated ? y : 0)
......@@ -2299,7 +2299,7 @@
mainBar.exit().transition().duration(durationForExit)
.style('opacity', 0)
.remove();
mainText = main.selectAll('.-texts').selectAll('.-text')
.data(barOrLineData);
mainText.enter().append('text')
......@@ -2746,7 +2746,7 @@
.transition().duration(100)
.style('opacity', 1);
}
function updateLegend(targets, options) {
var ids = getTargetIds(targets), l;
var xForLegend, xForLegendText, xForLegendRect, yForLegend, yForLegendText, yForLegendRect;
......
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