x axis ticks as frequent as need be
This commit is contained in:
parent
e1fd2403e9
commit
cba910f55b
|
@ -90,12 +90,11 @@ module.exports =
|
||||||
y = d3.scale.linear().range([ height, 0 ])
|
y = d3.scale.linear().range([ height, 0 ])
|
||||||
|
|
||||||
xAxis = d3.svg.axis().scale(x)
|
xAxis = d3.svg.axis().scale(x)
|
||||||
|
.orient("bottom")
|
||||||
# Show vertical lines...
|
# Show vertical lines...
|
||||||
.tickSize(-height)
|
.tickSize(-height)
|
||||||
# ...with day of the month...
|
# ...with day of the month...
|
||||||
.tickFormat( (d) -> d.getDate() )
|
.tickFormat( (d) -> d.getDate() )
|
||||||
# ...once per day...
|
|
||||||
.ticks(d3.time.hours, 24)
|
|
||||||
# ...and give us a spacer.
|
# ...and give us a spacer.
|
||||||
.tickPadding(10)
|
.tickPadding(10)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue