Project

General

Profile

Bug #40

daily sleep duration graph points are skewed in x

Added by Tony Ciavarella over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
12/04/2010
Due date:
% Done:

100%

Estimated time:

Description

For some reason, the daily sleep duration graph points are skewed in the X direction. The other graphs seem to line up perfectly. To see it best, zoom all the way in.

Values to the left of center seem to be off to the left while values right of center seem to be off to the right but they all could be skewed the same direction. It's hard to tell exactly, but they are definitely wrong.

It seems on the graph I was looking at, 6 days are shown but 7 values are plotted. That makes little sense. Perhaps the date divisions aren't working properly.

Further testing has shown that when a 40 dip minimum size for each X division is used, it works fine, but a 50 dip minimum on the same graph screws up, so something must be dumb about the division logic in DateTransform.

History

#1

Updated by Tony Ciavarella over 8 years ago

This happens because when the date range exceeds the maximum number of allowed divisions, the grid is formed by simply dividing the range by the maximum number of divisions. This causes grid lines to not necessarily be placed at "nice" day boundaries.

#2

Updated by Tony Ciavarella over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF