]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix a minor bug
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 2 May 2015 18:59:33 +0000 (14:59 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 2 May 2015 18:59:33 +0000 (14:59 -0400)
src/Chart.Bar.js

index 8f6651e2cf35b70d97b2fd2437bea64a92f3b086..73ac93ef95fdfa5d42d58f6187b87334445482bb 100644 (file)
                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);
                        }