mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 00:19:24 +03:00
show actual time on scale
This commit is contained in:
parent
6080ba66e1
commit
2abe3e47de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user