mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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
Block a user