Using Crossfilter, is it possible to track max/min when grouping?

后端 未结 3 1857
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 13:33

When using Crossfilter (https://github.com/square/crossfilter), I specify functions to use when adding and removing data from a group. It\'s fairly trivial to keep track of a ru

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 14:36

    You can use dimension.top(1) and dimension.bottom(1) to retrieve the current min and max. These methods respect any filters that may be active on the crossfilter.

提交回复
热议问题