From: Evert Timberg Date: Sun, 23 Aug 2015 21:17:21 +0000 (-0400) Subject: Remove wrong addition of padding X-Git-Tag: 2.0.0-alpha4~39^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4b3bf60b81e898fac41afc716b5885e928caebc;p=thirdparty%2FChart.js.git Remove wrong addition of padding --- diff --git a/src/scales/scale.linear.js b/src/scales/scale.linear.js index b39c89bdc..eaab69c6c 100644 --- a/src/scales/scale.linear.js +++ b/src/scales/scale.linear.js @@ -173,7 +173,6 @@ // 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;