Programmatically create and set the brushable area for two brushes. Prevent more brushes from being added and prevent existing brushes from being removed by disabling their .overlay
event listeners. Useful if you'd like to allow a user to select multiple date ranges.
Cues taken from Ludwig Schubert's block d3-multiple-brushes.
This brush snaps to ~~day~~ month boundaries. On release, the brush fires an end event, allowing a listener to modify the brush selection. Using brush.move to initiate a transition, the brush smoothly interpolates from the original selection to the rounded selection. Compare this approach to using immediate snapping while brushing.
forked from mbostock's block: Brush Snapping
https://d3js.org/d3.v4.min.js