From 00f04a01a9d3a26d021492bab5e52135e6f82876 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Sat, 26 Jan 2013 00:55:50 +0000 Subject: [PATCH] Fix Y-Ticks [#216] --- views/users/users.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/users/users.jade b/views/users/users.jade index 000dbff..0a6df79 100644 --- a/views/users/users.jade +++ b/views/users/users.jade @@ -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")