Contour Plot
✓ Published0🌍 Public
Mmbostock
Last edited Mar 6, 2019
Created on Dec 8, 2012
A contour plot visualizes the volcano dataset from R, showing elevation values through filled isolines. The map uses a sequential color scale with a custom terrain interpolation, transitioning from green to yellow to white across the elevation range. Implemented with d3-contour and rendered as SVG paths, the code applies d3.geoPath with a geoIdentity projection to scale the contours, while d3.hsv and d3.interpolateHsvLong define the color transitions for the 5-unit threshold intervals.
AI-generated descriptionAn example of d3-contour using R’s volcano. See also a heatmap of this dataset.
gpl-3.0 Licensed