[hotfix] handling 0% change in big number with trendline (#1801)

This commit is contained in:
Maxime Beauchemin 2016-12-08 12:59:35 -08:00 committed by GitHub
parent aeda5bd260
commit 68c2eab6b9

View File

@ -38,6 +38,8 @@ function bigNumberVis(slice) {
const vAnchor = data[pos][1];
if (vAnchor !== 0) {
vCompare = (v - vAnchor) / Math.abs(vAnchor);
} else {
vCompare = 0;
}
}
}