fix scaling issues on bar graph