Skip to main content
100%

Basic contours in D3

✓ Published0🌍 Public
ZZJONSSON
Last edited Oct 26, 2011
Created on Oct 26, 2011

An animated contour plot displays a matrix of numeric values as evolving line segments, with the contour level sweeping back and forth between -3.5 and 1. The animation updates every 50 milliseconds, redrawing the paths for the current level using a simplified implementation of Paul Bourke’s CONREC algorithm, which checks triangular subdivisions of each 4-point cell. The visualization is rendered with the D3.js library, using `d3.select` and `d3.svg.line` to map data coordinates to SVG paths, while the dataset is a 20x20 matrix of values loaded from a separate JavaScript file.

AI-generated description

Similar vizzes