mirror of https://github.com/apache/superset.git
parent
3df3e0d681
commit
3ebadbcda9
|
@ -109,7 +109,7 @@ function viz(slice, payload) {
|
||||||
// Time lag ratio
|
// Time lag ratio
|
||||||
v = reversedData[parseInt(c.timeLag, 10)][metric];
|
v = reversedData[parseInt(c.timeLag, 10)][metric];
|
||||||
if (c.comparisonType === 'diff') {
|
if (c.comparisonType === 'diff') {
|
||||||
v -= recent;
|
v = recent - v;
|
||||||
} else if (c.comparisonType === 'perc') {
|
} else if (c.comparisonType === 'perc') {
|
||||||
v = recent / v;
|
v = recent / v;
|
||||||
} else if (c.comparisonType === 'perc_change') {
|
} else if (c.comparisonType === 'perc_change') {
|
||||||
|
|
Loading…
Reference in New Issue