MB zoom circles in and out
This example shows a set of four colored circles on a white background that zoom in and out when clicked. Clicking a circle smoothly transitions the viewport to center on that circle and scale it up, while clicking the background resets the view. The code uses d3.zoom with a zoom transform, d3.transition for the 750-millisecond animation, and SVG circle elements. Circle positions and radii come from an inline JSON array, and the zoom behavior applies a transform to a group element containing the circles.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/Igathi/'>Igathi</a>'s block: <a href='http://bl.ocks.org/Igathi/c83ee941415a45da0cbcd611546bee54'>MB zoom circles in and out</a>
forked from <a href='http://bl.ocks.org/Igathi/'>Igathi</a>'s block: <a href='http://bl.ocks.org/Igathi/577e567978a74776bdd16d2837f8d8a0'>MB zoom circles in and out</a>