100 Circles are drawn with random colors using canvas, and each is stored as a dataURL and sent to an array. The array is then used to create a div with 100 image elements, each resized to 50px x 50px.
You'll need to click "open this in a new window" if you're viewing it on bl.ocks.org and want to see the small circles.
Modified http://d3js.org/d3.v3.min.js to a secure url
Modified http://d3js.org/colorbrewer.v1.min.js to a secure url
https://d3js.org/d3.v3.min.js
https://d3js.org/colorbrewer.v1.min.js