mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[hotfix] handling 0% change in big number with trendline (#1801)
This commit is contained in:
committed by
GitHub
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user