Fix y-axis label formatting in time-series charts

Time series charts previously always used 2 significant figures for
ticks on the y-axis, even if tick spacing was more precise than 2
significant figures, leading to charts that had repeated values along
their axes. Replace the lazy formatter with a smart formatting
function that uses the SI prefix for the largest Y value and displays
ticks to proper granularity.

Author: Dylan Nugent