quantazelle / daytum

Automatically exported from code.google.com/p/daytum
0 stars 0 forks source link

Stacked line display doesn't show quantities < 1.0 and rounds inappropriately #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have items entered with a quantity less than 1.0
2. Make a display with a stacked line graph.

What is the expected output? What do you see instead?
When I measure hobby time in hours, I get a lot of numbers like 0.5 in my 
dataset. But it seems 
that the stacked line graph rounds everything down to the nearest integer, so 
numbers less than 
1.0 do not display at all. I can only see entries where I spent at least a full 
hour on something. 
Also, entries like 1.0 and 1.9 display as exactly the same height, even though 
they differ by 
almost a factor of 2.

In my mental model of how the graph works, it's rounding the data to integers, 
then scaling the 
range of the data to match the graph. If instead it scaled and then rounded, 
the granularity of 
the data would be better preserved.

Original issue reported on code.google.com by sidb...@gmail.com on 25 Feb 2009 at 4:50