d3.js zoom & minimap | sungryeol park(max) | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
sungryeol park(max)
@rabelais
frontend + d3
Comments (1)
Images。
Mar 11, 2021
In onBrush, the third line from the bottom should be: d3.zoomIdentity.translate(scaleX(-brushX), scaleY(-brushY)).scale(zoomScale) Otherwise the brush and svg viewbox will shift after draging brush then zooming.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
sungryeol park(max)
18
Reply
Add comment
Subscribe to notifications
37
d3.js zoom & minimap | sungryeol park(max) | Observable