Triangular binning a set of 2D points. Maps area to the density of points within a triangle.
Essentially a fork of this block that does hexagonal binning. Uses the d3.triangleBin plugin. See this block which maps density to color instead of area.
https://d3js.org/d3.v3.min.js