Skip to content

Commit

Permalink
Fix when min > max, grid render not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
xg-wang committed May 14, 2017
1 parent 7d89160 commit deb58b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scales/scale.linearbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ module.exports = function(Chart) {
}
}

if (me.min === me.max) {
while (me.min >= me.max) {
me.max++;

if (!tickOpts.beginAtZero) {
if (tickOpts.min === undefined && !tickOpts.beginAtZero) {
me.min--;
}
}
Expand Down

0 comments on commit deb58b3

Please sign in to comment.