Closed csavelief closed 3 years ago
When a textFilterWidget is used inside a chartGroup, the charts belonging to this group are not properly filtered.
textFilterWidget
chartGroup
I believe the problem lies in this piece of code extracted from the dc.textFilterWidget function :
dc.textFilterWidget
_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().
dc.redrawAll(chartGroup)
dc.redrawAll()
Duplicate of #1498; please check that you are using 4.2.1 or higher.
When a
textFilterWidget
is used inside achartGroup
, 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 :It seems to me that
dc.redrawAll(chartGroup)
should be called instead ofdc.redrawAll()
.