You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built a dashboard with ~10 graphs and lots of data (which, unfortunately, I cannot share). Calling dc.filterAll() on it is pretty slow, taking 10-15 seconds. The default implementation of dc.filterAll() calls .filterAll() on each chart. Is there a reason why this couldn't be limited only to charts that actually have filters set? In my use cases, this typically applies only to a few charts. The following version works much quicker for me:
function myFilterAll() {
var charts = dc.chartRegistry.list();
for (var i = 0; i < charts.length; ++i) {
if (charts[i].hasFilter()) {
charts[i].filterAll();
}
}
}
I'm on dc.js version 2.1.4 (but the code for dc.filterAll() seems to be identical in the current 2.1.8).
The text was updated successfully, but these errors were encountered:
I have built a dashboard with ~10 graphs and lots of data (which, unfortunately, I cannot share). Calling
dc.filterAll()
on it is pretty slow, taking 10-15 seconds. The default implementation ofdc.filterAll()
calls.filterAll()
on each chart. Is there a reason why this couldn't be limited only to charts that actually have filters set? In my use cases, this typically applies only to a few charts. The following version works much quicker for me:I'm on
dc.js
version 2.1.4 (but the code fordc.filterAll()
seems to be identical in the current 2.1.8).The text was updated successfully, but these errors were encountered: