add heartrate graph function