Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of D3 Zoom

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed