Adding Background Images to Shapes

All of the shapes drawn by d3plus visualizations are instances of d3plus-shape classes. Any method made available by d3plus-shape is accessible through the .shapeConfig( ) method, which includes the ability to provide custom background images. Assuming your data points contain URLs of images like so:

var data = [
  {id: "alpha", value: 29, image: ""},
  {id: "beta",  value: 10, image: ""},
  {id: "gamma", value: 2,  image: ""}

We can pass an accessor to backgroundImage to add images to each square in a Treemap:

new d3plus.Treemap()
    backgroundImage: function(d) {
      return d.image;
    label: false