mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
we need to set this for the initial bar, otherwise there's a small jump at the beginning
This commit is contained in:
@@ -32,9 +32,10 @@ class EditorStatsView extends ScrollView
|
||||
w = @rootView.vertical.width()
|
||||
h = @height()
|
||||
data = d3.entries @stats.eventLog
|
||||
max = d3.max data, (d) -> d.value
|
||||
|
||||
@x.rangeBands [0, w - @pl - @pr], 0.2
|
||||
@y.range [h - @pt - @pb, 0]
|
||||
@y.domain([0, max]).range [h - @pt - @pb, 0]
|
||||
|
||||
@xaxis ?= d3.svg.axis().scale(@x).orient('top')
|
||||
.tickSize(-h + @pt + @pb)
|
||||
|
||||
Reference in New Issue
Block a user