dc.js icon indicating copy to clipboard operation
dc.js copied to clipboard

When call dc.filterAll(); will the "filtered.monitor" for a chart will be triggered?

Open Smmw opened this issue 9 years ago • 1 comments

When call dc.filterAll(); will the "filtered.monitor" for a chart will be triggered?

I have Java program back end. each time the chart filtered or the user click the chart, I would like to send the dimension data to server and make some process. This function works perfectly

`chart.on('filtered.monitor', function(chart, filter) { $.get(window.location.href + "toJSON?data=" + JSON.stringify(accountDim.top(Infinity)), drawForceLayout);

    });`

I added this for every chart. But when I click reset all from the table which will invoke dc.filterAll(), then it seems that every chart will send request to the server, it will slow the performance. How can I avoid this?

what value it would be in the filter from the call back function of the 'filtered.monitor', empty or undefined?

Smmw avatar Oct 06 '17 02:10 Smmw

I have tested it it will return null.

Smmw avatar Oct 06 '17 02:10 Smmw