I have a similar situation as in this question . Considering the same dataset, how can I perform this functionality through crossfilters. I am new to dc.js and crossfilter.
The solution is quite simple really. Create two dimensions:
startTimeDimendTimeDimNow, to filter out intervals that intersect a given range - rangeStart and rangeEnd, apply the following:
startTimeDim.filter([-Infinity, rangeEnd])endTimeDim.filter([rangeStart, Infinity])This basically filters out intervals that start before the range ends & end before the range starts.