Commit fdbfc05e authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix global x tick culling - #186

parent d48cfbec
...@@ -3238,14 +3238,14 @@ ...@@ -3238,14 +3238,14 @@
break; break;
} }
} }
d3.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) { svg.selectAll('.' + CLASS.axisX + ' .tick text').each(function (e) {
var index = tickValues.indexOf(e); var index = tickValues.indexOf(e);
if (index >= 0) { if (index >= 0) {
d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block'); d3.select(this).style('display', index % intervalForCulling ? 'none' : 'block');
} }
}); });
} else { } else {
d3.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block'); svg.selectAll('.' + CLASS.axisX + ' .tick text').style('display', 'block');
} }
} }
......
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