Skip to content

Commit

Permalink
Add tests for dimension.bottom.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Sep 16, 2012
1 parent 9c15373 commit 10eb079
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 10 deletions.
6 changes: 3 additions & 3 deletions crossfilter.js
Expand Up @@ -722,7 +722,7 @@ function crossfilter() {
return filterIndex((refilter = crossfilter_filterAll)(values));
}

// Returns the top K selected records, based on this dimension's order.
// Returns the top K selected records based on this dimension's order.
// Note: observes this dimension's filter, unlike group and groupAll.
function top(k) {
var array = [],
Expand All @@ -738,8 +738,8 @@ function crossfilter() {

return array;
}
// Basically same as top but on ascending order

// Returns the bottom K selected records based on this dimension's order.
// Note: observes this dimension's filter, unlike group and groupAll.
function bottom(k) {
var array = [],
Expand Down
2 changes: 1 addition & 1 deletion crossfilter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/crossfilter.js
Expand Up @@ -207,7 +207,7 @@ function crossfilter() {
return filterIndex((refilter = crossfilter_filterAll)(values));
}

// Returns the top K selected records, based on this dimension's order.
// Returns the top K selected records based on this dimension's order.
// Note: observes this dimension's filter, unlike group and groupAll.
function top(k) {
var array = [],
Expand All @@ -223,8 +223,8 @@ function crossfilter() {

return array;
}
// Basically same as top but on ascending order

// Returns the bottom K selected records based on this dimension's order.
// Note: observes this dimension's filter, unlike group and groupAll.
function bottom(k) {
var array = [],
Expand Down

0 comments on commit 10eb079

Please sign in to comment.