Skip to content

Commit

Permalink
simplify multi-focus reset
Browse files Browse the repository at this point in the history
fixes part of #1401
  • Loading branch information
gordonwoodhull committed Apr 8, 2018
1 parent 6a3c83c commit f35d784
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions web/examples/multi-focus.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,7 @@
}
this._focusCharts = chartlist; // only needed to support the getter above
this.on('filtered', function (range_chart) {
if (!range_chart.filter()) {
dc.events.trigger(function () {
chartlist.forEach(function(focus_chart) {
focus_chart.x().domain(focus_chart.xOriginalDomain());
});
});
} else chartlist.forEach(function(focus_chart) {
chartlist.forEach(function(focus_chart) {
if (!rangesEqual(range_chart.filter(), focus_chart.filter())) {
dc.events.trigger(function () {
focus_chart.focus(range_chart.filter());
Expand Down

0 comments on commit f35d784

Please sign in to comment.