Add heart_rate metrics on flot graph and refactor load data function for graph data.