show actual time on scale

This commit is contained in:
Justin Palmer 2013-01-30 09:41:49 -08:00
parent 6080ba66e1
commit 2abe3e47de

View File

@ -20,6 +20,9 @@ class EditorStatsView extends ScrollView
xaxis = d3.svg.axis().scale(x)
.orient('top')
.tickFormat (d) ->
d = new Date(startDate.getTime() + (d * 6e4))
"#{d.getHours()}:#{d.getMinutes()}"
@activate: (rootView, state) ->
@instance = new EditorStatsView(rootView, state?.eventLog)