From d7b09f0ba9baf5ddb7e30bddcf478c16039e5574 Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Fri, 1 Feb 2013 10:39:48 -0800 Subject: [PATCH] fix initial height so bars don't fly in from the top --- src/packages/editor-stats/src/editor-stats-view.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packages/editor-stats/src/editor-stats-view.coffee b/src/packages/editor-stats/src/editor-stats-view.coffee index b4983c08a..047c20f5b 100644 --- a/src/packages/editor-stats/src/editor-stats-view.coffee +++ b/src/packages/editor-stats/src/editor-stats-view.coffee @@ -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')