mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[hotfix] handling 0% change in big number with trendline (#1801)
This commit is contained in:
parent
aeda5bd260
commit
68c2eab6b9
@ -38,6 +38,8 @@ function bigNumberVis(slice) {
|
||||
const vAnchor = data[pos][1];
|
||||
if (vAnchor !== 0) {
|
||||
vCompare = (v - vAnchor) / Math.abs(vAnchor);
|
||||
} else {
|
||||
vCompare = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user