Add new scale function to abstract different y values depending on device.