fix initial height so bars don't fly in from the top

This commit is contained in:
Justin Palmer
2013-02-01 10:39:48 -08:00
parent 262cbcf168
commit d7b09f0ba9

View File

@@ -65,6 +65,7 @@ class EditorStatsView extends ScrollView
.data(data)
.enter().append('rect')
.attr('x', (d, i) => @x i)
.attr('height', (d, i) => h - @y(d.value) - @pt - @pb)
.attr('y', (d) => @y(d.value))
.attr('width', @x.rangeBand())
.attr('class', 'bar')