Updates to rendering of chart

Chart now updates on window resize.