Almost every real-time example program uses a time x-axis. You need to be very specific about what you want that is different than all of those examples. Look at the ScrollApplication1 example to start.
Replaying data is exactly the same is collecting it live. Only the data source changes. If you store the data you should store it with a time stamp. When you replay the data you can use the time stamp to place the data at the proper position on the x-axis. Use the RTProcessVar.SetCurrentValue overload that has a time stamp parameter. See the ScrollApplication1 example program.
currentTemperature1.SetCurrentValue(tod, currentTemperatureValue1);