This post describes how to build a very basic contour chart with d3.js. The contour chart is a representation of a 2d density. It is made thanks to the d3-contour plugin. Visit data-to-viz.com for more theoretical info on 2d density charts.
div
that will be modified by d3 later on. It also load the d3-contour pluginx
and y
. A 2d density plot basically represents the amount of data point on each part of the grid.d3.contourDensity()
. It's important to play with the bandwidth()
argument to find the good resolution.d3.geoPath()