Correctly assign time to x axis

The utility function was incorrectly assigning time to the y axis and
the value to the x axis.