How to create an elapsed time chart?

I’d like to create a bar that shows the activity’s elapsed time. Right now, we only have that bar fixed below all charts, which often makes manual analysis a bit harder.

I tried creating an Activity Stream, but I don’t know the correct code for it.
Is it possible to create something like this?

Does not give you a time bottom bar, but at least can display time as a legend in xx:xx:xx format.

{
    let t = icu.streams.time;
    
    if (t) {
        for (let i = 0; i < data.length; i++) {
            data[i] = t[i];
        }
    }
}
1 Like

Thank you very much, pepe! Your solution worked and it’s going to help a lot on my side!

Out of curiosity, as far as I can tell, this same method wouldn’t work for moving time (the time the athlete actually sees on the head unit during the workout), right?

No, this is elapse time.

1 Like

Thank you!

I created a public stream from your code for elapsed time.

With a help from ChatGPT, I also created another public stream for moving time.
In addition, there is now a public chart that includes moving time and distance.

1 Like