updated data format to be array of [timestamp, value]