Creating a custom sensor for Monthly Energy Production

Hi all,

I do need some help for my personal Energy Lovelace Dashboard…
For my solar Installation I do collect monthly production information with the following sensors:

grafik

The “solaredge_this_month” is the default sensor, the solaredge_this_month_kwh is a custom one which does just calculate the Wh output to kWh.

I would like to create a chart with a monthly production overview, similar to the view in the energy dashboard - but based on the values of the monthly sensor.
Do you know, how I could acheive this?

It should be a bar-chart with a growing value for every month…

Thanks and with best regards,
Christoph