3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 20:22:39 +01:00

Merge pull request #226 from SamStudio8/master

Fix Y-Ticks [#216]
This commit is contained in:
Sam Nicholls 2013-01-25 16:56:30 -08:00
commit 7b265a208e

View File

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