Make heart rate thresholds adapt to graph size