mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
we need to set this for the initial bar, otherwise there's a small jump at the beginning
This commit is contained in:
parent
d7b09f0ba9
commit
341764e406
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user