Skip to main content
100%

Brush & Zoom II

✓ Published0🌍 Public
ZZoeLeBlanc
Last edited Jul 25, 2018
Created on Jul 25, 2018

This example demonstrates brushing and zooming on a scatterplot of 900 points distributed in three clusters. Users can drag a rectangle to zoom into a region, and double-click to reset the view. The visualization uses D3 v4 with `d3.brush` for selection and `d3.scaleLinear` for coordinate mapping, while axis tick marks are generated via `d3.axisTop` and `d3.axisRight`. Transitions animate the zoom effect using SVG circles and axis updates.

AI-generated description

Using d3-brush to zoom to the brushed region. Double-click or double-tap to zoom out. Another approach is to use Focus + Context.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/f48fcdb929a620ed97877e4678ab15e6'>Brush & Zoom II</a>

gpl-3.0 Licensed

Similar vizzes