Adjustmenting Statistic of Energy Sensor or Importing from InfluxDB

Due to an error with my setup HomeAssistant didn’t record data for some time and I want to correct my energy data. Is there an easy way to interpolate the data so there are no jumps in the graph and the energy dashboard displays everything as it should?

I also have the sensor data in my Influx Database, can I import data from there?