Permalink
Browse files

Add tests for dimension.bottom.

  • Loading branch information...
mbostock committed Sep 16, 2012
1 parent 9c15373 commit 10eb0795bf6eba73cde4a3c9df18f239fe168103
Showing with 99 additions and 10 deletions.
  1. +3 −3 crossfilter.js
  2. +1 −1 crossfilter.min.js
  3. +3 −3 src/crossfilter.js
  4. +92 −3 test/crossfilter-test.js
View
@@ -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 = [],
@@ -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 = [],
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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 = [],
@@ -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 = [],
Oops, something went wrong.

0 comments on commit 10eb079

Please sign in to comment.