Fixed memory issues, added chart resize on window resize.