Skip to content

Commit

Permalink
Fix apache#3612 - reverse sign in difference calculation (apache#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent f86e46f commit 42772e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/visualizations/time_table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function viz(slice, payload) {
// Time lag ratio
v = reversedData[parseInt(c.timeLag, 10)][metric];
if (c.comparisonType === 'diff') {
v -= recent;
v = recent - v;
} else if (c.comparisonType === 'perc') {
v = recent / v;
} else if (c.comparisonType === 'perc_change') {
Expand Down

0 comments on commit 42772e3

Please sign in to comment.