add d3 color scales to be passed as a function