Adds use of d3 scales for height and color of rect