3

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

enter image description here

my question is: if the user changes the the max number of minutes to display what should i do:

  1. should I empty the graph and start from the current point in time
  2. should I use the data in the graph and display as much of the gathered data as possible before adding a new value
  3. any other implementation you know to be an industry standard
1

Has the data changed? No? So keep showing it. Clearing it seems silly.

I'd simply show as much data as possible, anchored to the latest datapoint:

enter image description here

  1. default size, perhaps you have older (grey) data cached.
  2. when you shrink the graph, just move everything left, and you'll cull the excess.
  3. if you expand the graph, and have cache, show that.
  4. if you don't have cache, don't show anything. otherwise users could infer incorrect information.
  • Thank you for the answer, implementing it this way makes a lot of sense – doc Mar 23 '16 at 12:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.