Refactor renderTime()

Now the chart scales properly.