This example demonstrates use of the d3-legend library.
The color scale comes from ColorBrewer.
forked from curran's block: Using d3-legend
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3-legend/1.1.0/d3-legend.js