how would u go about storing the old information of the graph?

like, for eg, i'd like it to store 60 seconds worth of history
and in order, recreate the information into a graph