Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Created July 19, 2014 19:03
Show Gist options
  • Save lastlegion/2e44271565de3acd8e36 to your computer and use it in GitHub Desktop.
Save lastlegion/2e44271565de3acd8e36 to your computer and use it in GitHub Desktop.
crossfilter on node.js
var crossfilter = require("crossfilter.js");
//Load your data
var data = [{"a": 1, "b":2}, {"a":2, "b":3}];
//Apply crossfilter
var ndx = crossfilter(data);
var dimension = ndx.dimension(function(d){return d.a});
var group = dimension.group();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment