All examples By author By category About

avansp

Grid with D3

This is my modification of creating grids using D3 taken from Chuck Grimmet's block.

The idea is to create a grid of nrow-by-ncol rectangular grid drawn on a SVG element. I simplified the code by removing a for-loop block.


Back to index | Next: adding mouse interaction on a grid