Rerendering the chart is now called when worker.js returns.
Moving more things to worker.js