added option to define the colorScale (must be a d3.scale)