Create a chart with kJ > FTP

I would like to know if I can create a chart in order to analyze the work (kJ) above the FTP accumulated over time during the activity?

I already use the analyzes through the “fitness” tab (Work and work over FTP chart) however I would like to analyze the progress during the activity.

I already tried to create it with JavaScript through the stream tab, but I was unsuccessful.

Can someone help me?

The existing W’bal chart will be very similar to this. The W’bal line only dips when you are working at over FTP.

Yes, I already use it

The idea is to analyze from the sum of efforts for application in MTB XCO athletes

For example:
The athlete performs 25kJ of work above FTP in a short climb followed by a descent and consistent work at Z3 where he would recover his W’. However, he continues to make this climb and at a certain point, due to the accumulated work, he is no longer able to sustain his efforts.

The idea is to try to understand how accumulated work in areas of intensity above the threshold may be influencing this.