gpt4 book ai didi

crossfilter - 为什么在 Crossfilter 中会这样?

转载 作者:行者123 更新时间:2023-12-04 11:26:35 27 4
gpt4 key购买 nike

Crossfilter documentation ,它说明了以下内容。

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.



这背后的原因是什么,解决方法是什么?

最佳答案

原因是 Crossfilter 是为过滤协调 View 而设计的。在这种情况下,您通常对可视化的维度进行过滤,并且希望查看其他维度基于您的过滤器的变化。但是定义过滤器的维度应该保持不变,部分是因为它是多余的(过滤机制通常已经在视觉上显示了),部分是因为您不希望您的维度值在尝试过滤时跳来跳去.

在任何情况下,为了解决这个问题,您可以在同一属性上定义两个相同的维度。使用一个维度进行过滤,使用另一个维度进行分组。这样,就 Crossfilter 而言,您的过滤维度和分组维度是分开的。

关于crossfilter - 为什么在 Crossfilter 中会这样?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15492896/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com