Fix chart not rendering on load. Closes #165.