Accepted answer

I think you should reshape your data so that it fits better into the Crossfilter paradigm. The following should get you what you want:

var data = [{"_1000_1249":0,"_1250_1499":2},{"_1000_1249":1,"_1250_1499":2},{"_1000_1249":2,"_1250_1499":3}]

var updatedData = []
for(var i=0; i < data.length; i++) {
    for(key in data[i]) {
        key: key,
      value: data[i][key]

var cf = crossfilter(updatedData)
var dimension = cf.dimension(function(d) { return d.key; })
var group = { return d.value; })


If you want to experiment, this is in a JSFiddle here:

Related Query

More Query from same tag