Index: app/views/environment.js |
=== modified file 'app/views/environment.js' |
--- app/views/environment.js 2012-11-19 19:52:43 +0000 |
+++ app/views/environment.js 2012-11-20 16:22:21 +0000 |
@@ -318,7 +318,9 @@ |
this.vis = vis; |
this.tree = d3.layout.pack() |
.size([width, height]) |
- .value(function(d) {return d.unit_count;}) |
+ .value(function(d) { |
+ return Math.max(d.unit_count, 1); |
+ }) |
.padding(300); |
this.updateCanvas(); |