Skip to main content
100%

Density Contours II

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

This example visualizes the density of diamonds by carat and price, using colored contour paths to show point density. It plots the data from `diamonds.tsv` on logarithmic x and y axes, with a gradient from YlGnBu. The code uses `d3.contourDensity` for kernel density estimation, `d3.geoPath` to render the contours as SVG paths, and `d3.axisBottom` and `d3.axisLeft` for axes. The chart also includes labeled axis text for "Carats" and "Price (USD)".

AI-generated description

An example of d3-contour for density estimation.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/7f5f22524bd1d824dd53c535eda0187f'>Density Contours II</a>

gpl-3.0 Licensed

Similar vizzes