[Objective-C] Porting D3.js Scales concepts to iOS.