Sum of Active Time Graph


I have a graph that monitors a project activity using Zabbix Plugin.

On the x axe there is the time. How would it be possible to get the sum of only when the project is active? Basically removing the time when the lines are flat (

), and maybe put the results in a different graph, table ecc.

Thank you