Y Scale domain adjustment algorithm

Add API endpoint to provide custom y scale domain adjustment algorithm based on new x scale domain.

Close #1079.
Not sure how much we care since this is in a quicktest, but we don't like using min/max