dc-js / dc.js

Multi-Dimensional charting built to work natively with crossfilter rendered with d3.js
Apache License 2.0
7.42k stars 1.81k forks source link

textFilterWidget : filter is not applied in groups #1812

Closed csavelief closed 3 years ago

csavelief commented 3 years ago

When a textFilterWidget is used inside a chartGroup, the charts belonging to this group are not properly filtered.

I believe the problem lies in this piece of code extracted from the dc.textFilterWidget function :

_input.on('input', function () {
            _chart.dimension().filterFunction(_filterFunctionFactory(this.value));
            dc.events.trigger(function () {
                dc.redrawAll();
            }, dc.constants.EVENT_DELAY);
        });

It seems to me that dc.redrawAll(chartGroup) should be called instead of dc.redrawAll().

gordonwoodhull commented 3 years ago

Duplicate of #1498; please check that you are using 4.2.1 or higher.