Code style update for re-rendering charts on window resize event.