made chart render on resize