mirror of
https://github.com/reality/dbot.git
synced 2024-12-03 17:39:28 +01:00
Fix Y-Ticks [#216]
This commit is contained in:
parent
f34283a62d
commit
00f04a01a9
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user