Skip to content

Commit

Permalink
fix(axis): use scale to check if data were contained #11300 (#11484)
Browse files Browse the repository at this point in the history
* Fix #11300

* Using scale to check if data were contained
  • Loading branch information
susiwen8 authored and pissang committed Nov 8, 2019
1 parent 0f90a73 commit 39c401d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coord/Axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Axis.prototype = {
* @return {boolean}
*/
containData: function (data) {
return this.contain(this.dataToCoord(data));
return this.scale.contain(data);
},

/**
Expand Down

0 comments on commit 39c401d

Please sign in to comment.