Show HN: Easypz.js automatically makes visualizations interactive via pan and zoom
easypz.io
easypz.io
The author says it handles “almost all” of the D3 gallery, which makes sense because some of those have very fancy zoom behaviors on them. I’ve written a few D3 visualizations, and while I enjoy the flexibility of the framework, the pan and zoom behaviors have always been a little tricky to work with.
Being able to skip all that and instead write <svg easypz=‘{“applyTransformTo": "svg > *"}’> to get universal zoom is very helpful!
In addition, you can get a EasyPZ demo of any visualization posted on GitHub gist / blocks by navigating to demos.easypz.io/[blockid]. Example: https://bl.ocks.org/027e163073864ef2ac4ceb5c2c0bf616/ becomes https://demos.easypz.io/027e163073864ef2ac4ceb5c2c0bf616 with automatic EasyPZ! Try it out on any block you like, and let me know if anything doesn't work that you think should work!
I can look into providing my timeline as library, but that would take a while. It's built on angular4.