Reputation: 12189
How can a D3 brush be programmatically adjusted from extent to extent? Can it be done so it appears to be animated rather than just instantly snapping to a final extent?
For example:
[0,0] to [0,100]
Extent just expanding to the right.
Upvotes: 2
Views: 1572
Reputation: 9293
d3.select('body').transition()
.call(brush.extent([0, 100]))
.call(brush.event);
http://bl.ocks.org/mbostock/6216724
Upvotes: 4