Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneblaidd committed Mar 20, 2019
1 parent 34a49f3 commit 9f1079f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scales/scale.linear.js
Expand Up @@ -113,7 +113,7 @@ module.exports = LinearScaleBase.extend({
return;
}

if (me.min === null || me.min > value.min) {
if (me.min === null || value.min < me.min) {
me.min = value.min;
}

Expand Down
4 changes: 2 additions & 2 deletions src/scales/scale.logarithmic.js
Expand Up @@ -120,7 +120,7 @@ module.exports = Scale.extend({
var values = valuesPerStack[key];
var value = me._parseValue(rawValue);
// invalid, hidden and negative values are ignored
if (isNaN(value.min) || isNaN(value.max) || meta.data[index].hidden || value.max < 0 || value.max < 0) {
if (isNaN(value.min) || isNaN(value.max) || meta.data[index].hidden || value.max < 0 || value.min < 0) {
return;
}
values[index] = values[index] || 0;
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = Scale.extend({
return;
}

if (me.min === null || me.min > value.min) {
if (me.min === null || value.min < me.min) {
me.min = value.min;
}

Expand Down

0 comments on commit 9f1079f

Please sign in to comment.