Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Zoom

Public visualization

Viewing a saved revision (read-only)

2774bd55a4ae4cadbf7b1e9e690ff4b5

Fork of D3 Zoom

0 stars1🌍 Public
KKhanin Sisaengsuwanchai
Last edited Jun 1, 2023
Created on Jun 1, 2023
Forked from D3 Zoom

This example demonstrates interactive zooming and panning on an SVG canvas. A group of circles connected by lines, generated from trigonometric functions in `utils.js`, responds to mouse wheel and drag gestures through the `d3.zoom` API. The zoom behavior applies a scale transform to the container group, respecting a scale extent between 0.5x and 4x. The SVG output is created with the `select` and `append` methods from the `d3` v7 library.

AI-generated description