Fix slice for both sets of axis rules, idiot.

This commit is contained in:
Sam Nicholls 2013-01-26 18:59:57 +00:00
parent c4c8ab341b
commit 3103e84ddb

View File

@ -66,7 +66,7 @@ block content
.attr("dy", 3)
.text(String);
chart.selectAll(".r_rule")
.data(y.ticks(5).slice(1,5))
.data(y.ticks(5).slice(1))
.enter().append("text")
.attr("class", "rule")
.attr("y", function(d) { return -1 * y(d) + h; })