draw heartbeats and timepline