From cba910f55bd467bdc75e0691b102a3272331b37a Mon Sep 17 00:00:00 2001 From: Radek Stepan Date: Wed, 21 Aug 2013 13:54:49 +0100 Subject: [PATCH] x axis ticks as frequent as need be --- src/modules/graph.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/graph.coffee b/src/modules/graph.coffee index 0ef9226..093524d 100644 --- a/src/modules/graph.coffee +++ b/src/modules/graph.coffee @@ -90,12 +90,11 @@ module.exports = y = d3.scale.linear().range([ height, 0 ]) xAxis = d3.svg.axis().scale(x) + .orient("bottom") # Show vertical lines... .tickSize(-height) # ...with day of the month... .tickFormat( (d) -> d.getDate() ) - # ...once per day... - .ticks(d3.time.hours, 24) # ...and give us a spacer. .tickPadding(10)