Skip to content

Commit

Permalink
[time table] fix reversed ratio (apache#3597)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent 1fdcf10 commit f53ec19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/assets/visualizations/time_table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function viz(slice, payload) {
if (c.comparisonType === 'diff') {
v -= recent;
} else if (c.comparisonType === 'perc') {
v /= recent;
v = recent / v;
} else if (c.comparisonType === 'perc_change') {
v = (v / recent) - 1;
v = (recent / v) - 1;
}
} else if (c.colType === 'contrib') {
// contribution to column total
Expand Down

0 comments on commit f53ec19

Please sign in to comment.