I am writing a d3 widget based on Mike Bostocks example http://bl.ocks.org/mbostock/1667367 So I am trying to set brush extent with predefined dates, but the extent rectangle is not applied to those dates.
var brush = d3.svg.brush()
.x(x2)
.extent([new Date("May 2001"), new Date("May 2002")])
.on('brush', brushed);
...
the entire code here http://plnkr.co/edit/H3nt9t8pw0nXM4yHp25P?p=preview