made chart height responsive to different screen sizes (only on reload, not when adjust)