Skip to content

Commit

Permalink
[time table] fix sorting on missing values (apache#5863)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and betodealmeida committed Sep 12, 2018
1 parent 1e35030 commit 367dcda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/assets/src/visualizations/time_table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function viz(slice, payload) {
} else if (column.comparisonType === 'perc_change') {
v = (recent / v) - 1;
}
v = v || 0;
} else if (column.colType === 'contrib') {
// contribution to column total
v = recent / Object.keys(reversedData[0])
Expand Down

0 comments on commit 367dcda

Please sign in to comment.