Removing Legend Labels

The text labels in a legend can be removed/disabled by setting the .label( ) method to false. This is common practice when using images, as in the Images in Legends example (which this code is based on).

var data = [
  {id: "Apple", color: "orange", image: ""},
  {id: "Fish", color: "blue", image: ""},
  {id: "Tomato", color: "red", image: ""}

var legend = new d3plus.Legend()
    backgroundImage: function(d) { return d.image; },
    fill: function(d) { return d.color; },
    height: 25,
    width: 25