Skip to content

Commit

Permalink
compo call replaceFilter on children
Browse files Browse the repository at this point in the history
it's still the wrong model, but calling filter twice
compounds the problem
for workaround for #479
  • Loading branch information
gordonwoodhull committed Jun 29, 2016
1 parent 46fa4e4 commit 4aea6bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/composite-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ dc.compositeChart = function (parent, chartGroup) {
var brushIsEmpty = _chart.brushIsEmpty(extent);

for (var i = 0; i < _children.length; ++i) {
_children[i].filter(null);
if (!brushIsEmpty) {
_children[i].filter(extent);
}
_children[i].replaceFilter(brushIsEmpty ? null : extent);
}
};

Expand Down

0 comments on commit 4aea6bb

Please sign in to comment.