Y Scale domain adjustment algorithm

Add API endpoint to provide custom y scale domain adjustment algorithm based on new x scale domain.

Close #1079.
Can this be generalized so that a secondary domain is changed when a primary domain is changed?