Fixed so that the chart will re-render if the width or height changes.