I have a couple of charts working correctly with dc.js, but I'd like to keep track of the values changing when the brush is moved, similar to the main crossfilter example here: http://square.github.io/crossfilter/.
Part of my issue is that I'm not completely understanding how the brush event listeners work when using dc.js charts, so I'm sure I'm missing something simple. I have looked over the D3.js brush API.
I've tried adding .on("brushstart", brushed) to the chart objects as well as creating an instance of the brush and then adding an event like this:
brush.on("brushstart", function() {
console.log("brush test");
});
but the event isn't firing. I also tried grouping the charts together similar to the crossfilter example code, but no luck.
A complete fiddle is here: http://jsfiddle.net/neilsatt/6Zk9v/
Thanks