generate matrix-like graph with d3.js
===

I have a matrix, each cell has an RGB value. I want to project that matrix onto a corresponding rectangular graph, based on each matrix cell's RGB value. What's the best way to do this?

Thanks a lot!