why does one chart not filter another in dc.js?

微笑、不失礼 提交于 2019-11-29 17:36:21
Chapo

You are using the same dimension to group on both charts.

a grouping intersects the crossfilter's current filters, except for the associated dimension's filter. Thus, group methods consider only records that satisfy every filter except this dimension's filter. So, if the crossfilter of payments is filtered by type and total, then group by total only observes the filter by type.

from the crossfilter API doc

One solution is to create a runDimension2 similar to runDimension and do your second chart using this dimension instead.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!