Y Scale domain adjustment algorithm

Add API endpoint to provide custom y scale domain adjustment algorithm based on new x scale domain.

Close #1079.
this seems like kind of a contrived case, im ok with this being a test but could you have one that tests the expected funcitonality