Made each bar in histogram a minimum of 2 pixels tall

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1701 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-10-27 04:14:33 +00:00
parent 764558c48a
commit 687515a669

View File

@ -140,7 +140,7 @@ HistogramWidget.prototype._render = function() {
if (y > 0) {
var left = c * stepPixels;
var width = Math.ceil(stepPixels);
var height = Math.ceil(y * canvas.height / self._peak);
var height = Math.max(2, Math.ceil(y * canvas.height / self._peak));
ctx.fillRect(left, 0, width, height);
}