Month duration line of Consume Performance

#1

Hello!
I need a month duration line of Consume Performance - Influx DB Query
(like https://www.researchgate.net/figure/Monthly-load-duration-curve_fig3_237317563).

This tells us from which consumption (load) how much % of the time occurs. The sensor value used is the values of an electricity meter.

I am thankful for any idea or idea of an idea
helmut