]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove wrong addition of padding
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 23 Aug 2015 21:17:21 +0000 (17:17 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 23 Aug 2015 21:17:21 +0000 (17:17 -0400)
src/scales/scale.linear.js

index b39c89bdc0c618027e45aecdb5232e53659a15de..eaab69c6c303eafc8591e14b124b457184ceec8e 100644 (file)
                                // Bottom - top since pixels increase downard on a screen
                                var innerHeight = this.height - (this.paddingTop + this.paddingBottom);
                                pixel = (this.bottom - this.paddingBottom) - (innerHeight / range * (value - this.start));
-                               pixel += this.paddingTop;
                        }
 
                        return pixel;