port scale selector raphael -> d3; make each scale its own float