I think we should change how the x-axis behaves.
ActivityGraph should support data from the order of minutes to the order of
months. Therefore, we will need multiple levels of zoom that involve hiding
certain tick marks. (Currently, it shows a mark for every day). I propose
the following different levels of marks:
* minute
* hour
* day
* week
* month
For the week tick, I recommend using Wednesday at 12pm as the tick mark.
For the month, I recommend using the midle Wednesday of the month (this
could be calculated by, for example, the Wednesday that is closest to the
fifteenth of the month).
I also propose changing the day mark from 0:00 to 12:00. This makes more
sense because then the day mark is centered on the middle of the day,
rather than the border between two days.
Another issue here is handling the labels. Currently, we have labels for
the hours that appear and disappear, and another label for day. Instead, I
propose having the tick labels change with the zoom level. For example,
let's say you are zoomed in enough so you can see the individual hours (1,
2, 3, ...). When you zoom out so that the hours disappear, the remaining
tick mark label should change from hours to dates (3/28, 3/27, ...), if you
keep zooming out to the month level, it should then change to show a month
(Jan, Feb, ...)
Note that I don't think the marks should also necessary look different. We
can have the hour/day/week/month ticks all the same height and width, it's
just that they remain when other ticks disappear at different zoom levels.
I also think the current day ticks are too thick, we can use regular-sized
ticks for these.
Original issue reported on code.google.com by lorinh on 9 May 2008 at 6:55
Original issue reported on code.google.com by
lorinh
on 9 May 2008 at 6:55