Retrospectively write data to a feed?

I've been thinking about how to display my gas usage, gleaned from a pulse-based meter, where 1 pulse represents 1 cubic foot of gas. Currently, on detection of a pulse, the WH of that CuFt of gas can be converted to average Watts over the duration since the previous pulse, and interrupt.ino on the Arduino tracks that duration, and makes the calculation, currently plonking it into emonPi.power2.  That gives a single value written into the Feed at the time the value is received by emoncms. Well and good, but that gives me a series of spikes, one per pulse, scattered across a graph over a period of time, often with very long gaps between them.

After sending the value, emonPi.power2 is cleared to zero, as the current value is no longer relevant after the pulse, and no new value can be calculated until the next pulse is detected, and that might be hours in the future. The current value's actual relevance is for the time between the most recent pulse and the previous pulse, and yet nothing is written into any of the datapoints in the Feed for that entire duration except the one coinciding with the pulse, all the rest are zero.

That seems a very artificial way to display that data. I think there might be a better way, a way that spreads the data across more of the graph than current mechanisms for gas/other pulse meters do.

What if we write a suitable value retrospectively into as many datapoints preceding the pulse as far as either the previous pulsetime, or, say, 15 minutes, whichever is shorter.

My reasoning for a limit is that it doesn't make sense to write a very low value (35.3W) into every datapoint for the previous nine hours while my central heating was off overnight, it would make more sense to assume that all of that CuFt was consumed within, say, the last 15 minutes, and that all of the time prior to that limit no gas was consumed at all after the previous pulse. I would therefore calculate the Watts as 1273W, and write that into the last 90 datapoints, assuming 10 second intervals. Specifying a limit allows for long periods when it is clear that no gas is being consumed, and limits the number of writes in the update, and importantly, doesn't contradict the data, it is just a convenience that reinterprets the data in a more useful and arguably more intuitive manner, more closely resembling the electric Watts graphs. It achieves a more granular appearance than single bare pulses can do.

Any ideas as to how to achieve this? Is there a mechanism that exists in processes to do this? Where would I start?

Mike