refactored yscale mins for bar.