mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
🐫 case
This commit is contained in:
@@ -72,11 +72,11 @@ class EditorStatsView extends ScrollView
|
||||
@updateInterval = setInterval((=> @update()), 5000)
|
||||
|
||||
update: ->
|
||||
newdata = d3.entries @stats.eventLog
|
||||
max = d3.max newdata, (d) -> d.value
|
||||
newData = d3.entries @stats.eventLog
|
||||
max = d3.max newData, (d) -> d.value
|
||||
@y.domain [0, max]
|
||||
h = @height()
|
||||
@bars.data(newdata).transition()
|
||||
@bars.data(newData).transition()
|
||||
.attr('height', (d, i) => h - @y(d.value) - @pt - @pb)
|
||||
.attr('y', (d, i) => @y(d.value))
|
||||
@bars.classed('max', (d, i) -> d.value == max)
|
||||
|
||||
Reference in New Issue
Block a user