color legend for use with d3js