marmelab / EventDrops

A time based / event series interactive visualization using d3.js
http://marmelab.com/EventDrops/
MIT License
1.24k stars 237 forks source link

Enhancement: On window resize when zoomed, avoid reset of zoom #263

Open Busteren opened 5 years ago

Busteren commented 5 years ago

As the title says, when zoomed in and the chart resizes, the zoom is reset. Could be useful to keep track of the state, and then zoom programmatically when the chart is drawn. This is similar to issue #252

Here is an example of how to do it: example of zoom to domain in D3