Skip to content

Commit 11883aa

Browse files
kurkleetimberg
authored andcommitted
Stop limiting getDecimalForPixel to chart area (#6608)
1 parent 29de4af commit 11883aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/core.scale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ var Scale = Element.extend({
929929

930930
getDecimalForPixel: function(pixel) {
931931
var decimal = (pixel - this._startPixel) / this._length;
932-
return Math.min(1, Math.max(0, this._reversePixels ? 1 - decimal : decimal));
932+
return this._reversePixels ? 1 - decimal : decimal;
933933
},
934934

935935
/**

0 commit comments

Comments
 (0)