jeanpaul/jqawstats — pull request #3 by mjholtkamp (2013-05-29 21:41:55+00:00)
Title: "All Months" update

It's going to be difficult to get both:
1) no padding, and
2) ticks on exact data points.

If you set min and max to the first and last date, the ticks might not fall on an exact date, i.e. when you hover over a data point, it's actually from a slightly different date than the tick beneath. On the other hand, if you let jqplot figure out the number of ticks automatically, the ticks and data points line up perfectly, but empty space (future dates) might show up to the right. I think this is because jqplot always tries to divide the axis into equal lengths (i.e. axis points = tickInterval * numberTicks).

Since I don't like padding on the right, but I like inexact ticks even more, I choose to have padding on the right (some times).