D3 plugin for doing triangular binning on a set of points. Useful for visualizing 2D distributions when you have a lot of data points.
Inspired by the d3.hexbin plugin.
Color Encoding ![]() |
Area Encoding ![]() |
Save the triangle-bin.js
file from this repo and include it in your HTML after including D3:
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="triangle-bin.js"></script>
TODO (Roughly follows the API of d3.hexbin plugin)