mirror of
https://github.com/atom/atom.git
synced 2026-01-27 07:47:58 -05:00
show actual time on scale
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user