Skip to main content
100%

Contour experiment

✓ Published0🌍 Public
RRobinL
Last edited Apr 8, 2017
Created on Apr 8, 2017

A grid of five-by-five values is rendered as a colored contour plot, with sparse peaks at the corners and center producing concentric bands. The example uses `d3.contours` from the d3-contour module to compute iso-lines from the array, with thresholds set from 0 to 1 in increments of 0.1. Each resulting path is drawn as an SVG element via `d3.geoPath` and `d3.geoIdentity`, scaled by 100, and filled with a linear scale interpolating the YlGnBu color scheme from d3-scale-chromatic.

AI-generated description

An example of d3-contour.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/f48ff9c1af4d637c9a518727f5fdfef5'>Contour Plot II</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/69ac989185313094d02b22c23e10660f'>Contour experiment</a>

forked from <a href='http://bl.ocks.org/RobinL/'>RobinL</a>'s block: <a href='http://bl.ocks.org/RobinL/18708854cbcf57ae36896f0eb23d4f60'>Contour experiment</a>

gpl-3.0 Licensed

Similar vizzes