d3-legend

A legend component for d3. Given a d3.scale it can create either a color legend, size legend, or symbol legend.

d3legend

http://d3-legend.susielu.com