add d3, draw a linear scale legend