🐫 case

This commit is contained in:
Kevin Sawicki
2013-02-01 10:34:31 -08:00
parent 7b472ed888
commit b1b9a69146

View File

@@ -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)