Hi,
I've been searching for hours for a solution to be able to move the brush selection NOT by pixels [200, 600], but by x-values on a time-based x scale.
This works fine, okay
context.select(".brush").call(brush.move, [600, 800]);
But I'm about to figure out how to programmatically move the brush selection to an exact time-frame. I'd like to achieve something like this:
context.select(".brush").call(brush.move, [parseDate('Jan 2007'), parseDate('Dec 2007')]);
I know it doesn't work, but is there anyone to guide me, how to make this feat work?
In d3 v3 it works:
brush.extent([parseDate('Jan 2007'), parseDate('Dec 2007')]);
brush(d3.select(".brush"));
brush.event(d3.select(".brush"));
But how to do the same in v4?
Thanks,
Balint