fix issue with projections not supporting rotation
use d3.scale.threshold if domain array has more than 2 items
A bit more comprehensible way of determining the min value to display in the legend