Chart redraws on page resize