finished d3js legend