Skip to content

Commit

Permalink
Fixing composite chart resetting all filters - Bugs dc-js#390, dc-js#677
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhley committed Mar 7, 2016
1 parent 4a99e65 commit 2512ba8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/composite-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,5 +540,16 @@ dc.compositeChart = function (parent, chartGroup) {
return _chart;
};

dc.override(_chart, 'filterAll', function () {
var g = this._filterAll();
for (var i = 0; i < _children.length; ++i) {
var child = _children[i];

child.filterAll();
}

return g;
});

return _chart.anchor(parent, chartGroup);
};

0 comments on commit 2512ba8

Please sign in to comment.