This essentially allows you to use a graph that you created in D3 and then drag and visually select portions of the graph. You can create multiple selections.
Screenshots and examples coming when the API stabilizes a bit.
npm install --save d3-dragrect
component install jprichardson/d3-dragrect
//only use 'require' if using browserify or componentvar d3dragrect =//'svg' is your svg element, typically 'height' would be the height of 'svg'var dragBehavior =svg
The default styling will be very ugly. This makes it look alright:
Copyright 2013, JP Richardson email@example.com