From 25137c03467f8c9b19808cd7bec6420c70ba985c Mon Sep 17 00:00:00 2001 From: Igor Babuschkin Date: Sat, 2 Aug 2014 19:43:47 +0200 Subject: [PATCH] Fix histogram to be large enough, even with error bars --- js/histogram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/histogram.js b/js/histogram.js index cea4c01..7671632 100644 --- a/js/histogram.js +++ b/js/histogram.js @@ -18,7 +18,7 @@ function draw_hist(ident, vals) { (vals); var y = d3.scale.linear() - .domain([0, d3.max(data, function(d) { return d.y; })]) + .domain([0, d3.max(data, function(d) { return d.y + Math.sqrt(d.y); })]) .range([height, 0]); var xAxis = d3.svg.axis()