3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Fix Y-Ticks [#216]

This commit is contained in:
Sam Nicholls 2013-01-26 00:55:50 +00:00
parent f34283a62d
commit 00f04a01a9

View File

@ -36,12 +36,12 @@ block content
.attr("height", h + xlab);
chart.selectAll(".yTicks")
.data(y.ticks(4).slice(0,5))
.data(y.ticks(5).slice(1,5))
.enter().append("svg:line")
.attr("class", "yTicks")
.attr("y1", function(d) { return y(d); })
.attr("y1", function(d) { return -1 * y(d) + h; })
.attr("x1", 0)
.attr("y2", function(d) { return y(d); })
.attr("y2", function(d) { return -1 * y(d) + h; })
.attr("x2", w * #{chanFreqLen})
chart.selectAll("rect")