Deleting timestamps that are too old in a dcc.Graph using Patch

Hey,

I had a small question about deleting old timestamps using dcc.Graphs and Patch. I basically have a graph that continues to be extended every 5 seconds and if the data points are older than X minutes I want to start deleting the points from the graph. I saw that you couldnt specify X < Y in the remove from Patch(). As a result, I believed that you needed to know the current data in the figure which I believed negetated the benefits of Patch. So I was wondering what the best practice here was using Patch.

Kind regards,

Guyon

Hey @Guyon welcome to the forums. Could you provide a minimal reproducible example?