Update timer every second.
Chart should resize dynamically based on its container's size.
Fixed some bugs with resizing.