I have a graph that shows live CPU and memory performance. I am allowing the user to select the max number of minutes he wishes to see on the graph, so if he chooses 5 minutes he will only see the last 5 minutes of the graph.
you can see it here
my question is: if the user changes the the max number of minutes to display what should i do:
- should I empty the graph and start from the current point in time
- should I use the data in the graph and display as much of the gathered data as possible before adding a new value
- any other implementation you know to be an industry standard