Closed jspaaks closed 8 years ago
something like
var facts = crossfilter();
facts.add(thedatafromxhr);
var dim = {};
dim.byDate = facts.dimension(function(fact){return fact.date});
dim.byTimeOfDay = facts.dimension(function(fact){return fact.tod // or something});
see here for a useful example.
Might not actually be a problem...there's a different (currently unknown) factor that is much more of a performance bottleneck
as long as you know that the results are ordered by time, you can probably construct the histogram more efficiently