marmelab / marmelab/EventDrops
Enhancement: On window resize when zoomed, avoid reset of zoom
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 233
- PR merge metrics
- No merged PRs in 30d
Description
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](https://bl.ocks.org/mbostock/431a331294d2b5ddd33f947cf4c81319)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the chart handles resizing and redraws, then compare the behavior with issue #252 and the linked D3 zoom-to-domain example. Done means a zoomed chart keeps its zoomed domain after resizing instead of resetting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100