From: Evert Timberg Date: Sat, 2 May 2015 18:59:33 +0000 (-0400) Subject: Fix a minor bug X-Git-Tag: v2.0-alpha~27^2^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b29282fd57dd40654e3867350132a245fa4cd5;p=thirdparty%2FChart.js.git Fix a minor bug --- diff --git a/src/Chart.Bar.js b/src/Chart.Bar.js index 8f6651e2c..73ac93ef9 100644 --- a/src/Chart.Bar.js +++ b/src/Chart.Bar.js @@ -146,7 +146,7 @@ calculateBarBase: function() { var base = this.scale.endPoint; - if (this.scale.beginAtZero || ((this.scale.min < 0 && this.scale.max > 0) || (this.scale.min > 0 && this.scale.max < 0))) + if (this.scale.beginAtZero || ((this.scale.min <= 0 && this.scale.max >= 0) || (this.scale.min >= 0 && this.scale.max <= 0))) { base = this.scale.calculateY(0); }