x axis ticks as frequent as need be

This commit is contained in:
Radek Stepan 2013-08-21 13:54:49 +01:00
parent e1fd2403e9
commit cba910f55b
1 changed files with 1 additions and 2 deletions

View File

@ -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)