A simple example of a rectangular adjacency matrix. The scaleBand.padding()
method is not used because it is less flexible than using pixel math. This way, we can use pixel-based paddings and still be able to use the scale to address a specific cell without having to correct pixel values by taking the unknown padding amount into account.
forked from nitaku's block: Rectangular adjacency matrix
forked from anonymous's block: Rectangular adjacency matrix
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-selection-multi.v0.4.min.js