square / crossfilter

Fast n-dimensional filtering and grouping of records.
https://square.github.com/crossfilter/
Other
6.22k stars 1.31k forks source link

bottom() malfunction? #169

Closed ppeer closed 8 years ago

ppeer commented 8 years ago

The bottom function produces an Uncaught TypeError: dimension.order(...).bottom(3) is not a function Is it still well-defined in the crossfilter.js? top(3) no problem.

Finally I thought it was due to interference with another bottom function being used, but after changing the name to botomm it's error persists.

any clue?

gordonwoodhull commented 8 years ago

There is a dimension.bottom() function, but there is no dimension.order() function - could it be that .order() is the problem?

Or, more likely, could it be that you have a group object, which supports group.order() group but not `group.bottom()?

ppeer commented 8 years ago

@gordonwoodhull the last suggestion, that's the case.