Skip to main content
100%

Contour Plot II

✓ Published0🌍 Public
MMorganhaoyu
Last edited Oct 20, 2018
Created on Oct 20, 2018

This example visualizes the Goldstein-Price test function using a grid of 240 by 125 sampled values, displayed as a series of 20 logarithmic contour thresholds. The contours are rendered as filled SVG paths with a blue-green-yellow color scale. The code uses `d3.contours` to compute the isolines and `d3.geoPath` with `d3.geoIdentity` to project them, while `d3.scaleLog` and `d3.interpolateYlGnBu` define the color mapping. The data is generated procedurally from the mathematical function.

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>

gpl-3.0 Licensed

Similar vizzes