Skip to main content
100%

Canvas Semantic Zooming

✓ Published0🌍 Public
Mmbostock
Last edited Aug 30, 2017
Created on Sep 8, 2012

This example demonstrates semantic zooming of a scatterplot containing 2,000 points rendered on a Canvas element. As the user zooms, the points are re-projected through the current transform, and the drawing is cleared and redrawn at each zoom event. The code uses D3’s `d3.zoom` and `d3.event` to manage the interactive transform, and the `d3.randomNormal` distribution positions the data in a Gaussian cluster centered on the canvas. All drawing occurs directly on the Canvas 2D context.

AI-generated description

A series of related examples:

gpl-3.0 Licensed

Similar vizzes