plotti.co icon indicating copy to clipboard operation
plotti.co copied to clipboard

For "CPU load" - like (percentage) plots we need to guess that user wants 0-100 scale

Open grandrew opened this issue 8 years ago • 4 comments

scales like 0-80 or 0-90 should not exist; they usually indicate that the data wants something like 0-100 instead

also if an outlier spikes so that we wanted to set a 0-110 scale - this should be smoothed too

screenshot 2016-03-16 at 1 16 07 am

grandrew avatar Mar 15 '16 22:03 grandrew

Why not add a couple of get parameters like min & max instead of doing guesswork?

dpq avatar Mar 15 '16 22:03 dpq

introducing plotting parameters API is out of the current development scope; the thing should work out of the box as expected; 0-80 is definitely an impossible scale; also 0-800 is likely a badly designed scale

grandrew avatar Mar 15 '16 22:03 grandrew

Perhaps we should see if the axis name ends with % instead? If it does, set the axis size to 100 units.

dpq avatar Mar 17 '16 09:03 dpq

yes, that would be a nice guess. Maybe this algorithm:

  1. if the axis max is 90 -> immediately do a 0-100
  2. if the axis max is 15 < max < 90 and has % sign in msg -> do a 0-100

grandrew avatar Mar 17 '16 10:03 grandrew