Skip to main content
100%

Contour Test using Jason Davis implementation with D3

✓ Published0🌍 Public
ZZJONSSON
Last edited Jul 19, 2012
Created on Oct 20, 2011

This example uses the Conrec algorithm with D3 to render contour lines from a matrix of numerical data. The data is a 20×20 grid of values ranging from -5 to 3. D3’s linear scales map the grid indices to a 500×500 pixel coordinate space, while a color scale maps contour levels from white to red. The Conrec library computes contour polygons for 17 levels, and D3 renders them as semi-transparent filled paths with black strokes. The result is a multi-level contour plot that visualizes the underlying scalar field, with each level colored according to its value.

AI-generated description

Similar vizzes