update d3 legend/colors. removed d3 service