refactored scaling distance for chord chart