Stop limiting getDecimalForPixel to chart area (#6608)

This commit is contained in:
Jukka Kurkela 2019-10-27 15:16:38 +02:00 committed by Evert Timberg
parent 29de4aff21
commit 11883aa59d

View File

@ -929,7 +929,7 @@ var Scale = Element.extend({
getDecimalForPixel: function(pixel) {
var decimal = (pixel - this._startPixel) / this._length;
return Math.min(1, Math.max(0, this._reversePixels ? 1 - decimal : decimal));
return this._reversePixels ? 1 - decimal : decimal;
},
/**