All examples By author By category About

TommyCoin80

MatrixGrid Function for D3 Dashboards

I don't like constantly doing math to figure out dimensions when I'm building a dashboard of charts, so I made this helper function. It takes a matrix (array of arrays) as an argument, and divides the svg in the same manner as the matrix is divided by unique cell values.

Built with blockbuilder.org