Skip to content

Commit

Permalink
[hotfix] handling 0% change in big number with trendline (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Dec 8, 2016
1 parent aeda5bd commit 68c2eab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/assets/visualizations/big_number.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ function bigNumberVis(slice) {
const vAnchor = data[pos][1];
if (vAnchor !== 0) {
vCompare = (v - vAnchor) / Math.abs(vAnchor);
} else {
vCompare = 0;
}
}
}
Expand Down

0 comments on commit 68c2eab

Please sign in to comment.