}
else if (resolution == AggregateCountResolution.day) {
DateTime startDay = new DateTime(c.dayOfYear().roundFloor(start.getMillis()));
DateTime endDay = new DateTime(c.dayOfYear().roundFloor(end.plusDays(1).getMillis()));
int nDays = Days.daysBetween(startDay, endDay).getDays();
DateTime cursor = new DateTime(c.year().roundFloor(interval.getStartMillis()));
List<long[]> yearDays = new ArrayList<long[]>();
DateTime endYear = new DateTime(c.year().roundCeiling(end.getMillis()));
while (cursor.isBefore(endYear)) {
long[] dayCounts = dayCountsByYear.get(cursor.getYear());