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.
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.
1
person likes this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?oooh, you know it's a good suggestion when there's actually some code in it. ;-)
Hrm-- I believe that might be a bug (with the 58 minute thing). For a day view, there's no reason not to cap that at 1h (given that's the most you can spend on a per-hour basis).
But, I think you're right that the y-axis scaling calculations could be a touch more elegant.
The company thinks
this is one of the best points
Loading Profile...



EMPLOYEE