Simplified domain for scales. Added legend. Removed calculateDomain func...

...tion