Custom Streams / Garmin Performance Condition / Error

Hi,

yesterday, I discovered that it is possible to add the performance condition chart recorded by Garmin to be shown in the activity summary.
User pangliang added it under Custom Streams. But it only seems to work with short activities.

I have basically no knowledge of how JavaScript works. Can someone help? Is it possible?

Many thanks!

With similar scripts, as Custom Streams, i had to try a coupe off times.

Garmin GAP Pace, Garmin GAP Speed “FIELD_140”, undocumented Garmin field decodend by me.

And

Stress “FIELD_116” / 100
Pulse Ox “FIELD_133”
Potential Stamina “FIELD_137”
Stamina “FIELD_138”
Body Battery “FIELD_143”

For MTB Bike Dynamics
Grit “FIELD_114”
Flow “FIELD_115”

Garmin records fields undocumented and not yet decoded per activity:

Swim Open water with HR Garmin Hrm Pro: 18, 107, 134, 135
lap swim with HR Garmin Hrm Pro: 135
Hiking: 107, 135
Run: 107, 135
Bike with HR Garmin Hrm Pro: 107, 134
Bike with Polar H10: 107
Mtb: 107, 135
alpine skiing: 107, 135

Field 107 seems to be GPS Fix, values: true, false