D3 threshold scale legend