This example demonstrates use of the d3-legend library.
The color scale comes from ColorBrewer.
forked from curran‘s block: Using d3-legend