Get your own customer support community
 

graph scale rounding

I have a suggestion for the scale in graphs. You'd have to check all the permutations, but I think it would be prettier if a scale of 58 minutes was shown as 60 minutes (or 1 hour) and that a scale max value would always be reasonably divisible by 4. Thinking minutes only, something like this might work

assume MAX_TIME is the biggest number you need to display on the graph expressed in decimal minutes

scale= int(((max_time -.01)+4)/4)*4
if scale>= 52 then scale = 60

the first bit can be wirtten as max_time+3.999
the idea is that 60.0 should become 63.999 and truncate to a final value of 60

the second statement makes anything over 50 something a full hour

It seems you have already this rounding thing figured out: 70 minutes results ina 2 hour maximum for the scale.
 
indifferent I’m not quite a neat freak
Inappropriate?
1 person likes this idea

User_default_medium