This post describes how to build a very basic 2d histogram with d3.js. The 2d histogram is a representation of a 2d density. It is made thanks to the d3-rectbin 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-hexbin plugin
x
and y
.
A 2d histogram basically represents the amount of data point
on each part of the grid.
d3.rectbin()
.
rect