Advanced multi sensor graphics with sum and multiplication

Easy with Grafana, get the data, transform and voila you got the graph I am after.

I am doing - getting hourly energy consumption per phases (A,B,C) which are done by HA helpers, sum hourly max values together got get like 1 + 2 +7 = 10kWh. Then I take hourly electrocity price which is valid for that hour 0.1e/kWh and multiply to get hourly price of 1e.

Is there any way to do this live like Grafana does without doing template sensors. Like ApexCharts data_generator etc?