
Hello,Im trying to create a graph for running, similar to the one that fixxtrack is offering. However I didnt find a solution yet. It is showing your average pace at a specific HR zone per date. See below. I would appreciate any hint to get this done. Thanks
{
# only calculate for runs containing HR
relevant { Data contains "H" and isRun ; }
# initialise aggregating variables
init { seconds <- 0; velocidad <- 0;}
# add time for each sample moving and pedaling
sample {
if (HEARTRATE < 180 and HEARTRATE > 159) {
seconds <- seconds + RECINTSECS;
velocidad <- velocidad + SPEED;
}
}
# calculate mean speed and convert to pace
value { 1/(velocidad/seconds)*3600; }
}
Hello Ale,Thanks for the hint, It helped me advance a lot. I created the following metric:For the red marked part: Is it possible to link the HR to the Zones (Z1,Z2...Z5) defined for the athlete? I found that with the config function I can call the Lactate Threshold and then calculate it, but I was wondering if there is a more direct way.
.gchart file for python/plotly chart attached.I wrote it in Dev 3.6 Aug 27 Build for Linux. But i also tested it with latest Sep 3 build in Windows.So here is what chart "can do":- it displays Speed or Pace (based on selected sport - in python code)
