Skip to main content
100%

Canvas Geometric Zooming

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 4, 2018
Created on Sep 4, 2018

This example demonstrates geometric zooming on a canvas, where a scatterplot of 2,000 normally distributed points scales and translates as a single unit. The code uses D3 v4’s `d3.zoom` to handle user input, applying the transform directly to the canvas context via `translate` and `scale`. Points are drawn with the Canvas 2D API’s `arc` method, and the zoom behavior redraws all points on each event. No semantic distortion occurs—the entire visualization scales uniformly.

AI-generated description

A series of related examples:

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3680958'>Canvas Geometric Zooming</a>

gpl-3.0 Licensed

Similar vizzes