forked from GitHub/dbot
Fix slice for both sets of axis rules, idiot.
This commit is contained in:
parent
c4c8ab341b
commit
3103e84ddb
@ -66,7 +66,7 @@ block content
|
|||||||
.attr("dy", 3)
|
.attr("dy", 3)
|
||||||
.text(String);
|
.text(String);
|
||||||
chart.selectAll(".r_rule")
|
chart.selectAll(".r_rule")
|
||||||
.data(y.ticks(5).slice(1,5))
|
.data(y.ticks(5).slice(1))
|
||||||
.enter().append("text")
|
.enter().append("text")
|
||||||
.attr("class", "rule")
|
.attr("class", "rule")
|
||||||
.attr("y", function(d) { return -1 * y(d) + h; })
|
.attr("y", function(d) { return -1 * y(d) + h; })
|
||||||
|
Loading…
Reference in New Issue
Block a user