Skip to content

Commit

Permalink
Merge pull request #31 from redbearsam/feature/fix-data-filter
Browse files Browse the repository at this point in the history
Fix data filter for multiple GroupBy
  • Loading branch information
matt-hooper authored Feb 12, 2019
2 parents 0303687 + efc3af4 commit b5cee45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perspective-viewer-d3fc/src/js/plugin/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function drawChart(chart) {
return;
}

const filtered = row_pivots.length > 0 ? json.filter(col => col.__ROW_PATH__ && col.__ROW_PATH__.length > 0) : json;
const filtered = row_pivots.length > 0 ? json.filter(col => col.__ROW_PATH__ && col.__ROW_PATH__.length == row_pivots.length) : json;

let settings = {
crossValues: row_pivots.map(r => ({name: r, type: tschema[r]})),
Expand Down

0 comments on commit b5cee45

Please sign in to comment.