Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dateArray = d3Time.timeMilliseconds(start, end, 60000);
countableI = d3Time.timeSecond;
dateArray = d3Time.timeSeconds(start, end);
dateArray = d3Time.timeSeconds(start, end, 120);
countableI = d3Time.timeMinute;
dateArray = d3Time.timeMinutes(start, end);
dateArray = d3Time.timeMinutes(start, end, 5);
countableI = d3Time.timeHour;
dateArray = d3Time.timeHours(start, end);
dateArray = d3Time.timeHours(start, end, 2);
countableI = d3Time.timeDay;
dateArray = d3Time.timeDays(start, end);
dateArray = d3Time.timeDays(start, end, 2);
countableI = d3Time.timeWeek;
dateArray = d3Time.timeWeeks(start, end);
dateArray = d3Time.timeWeeks(start, end, 2);
countableI = d3Time.timeSunday;
dateArray = d3Time.timeSundays(start, end);
dateArray = d3Time.timeSundays(start, end, 2);
countableI = d3Time.timeMonday;
dateArray = d3Time.timeMondays(start, end);
dateArray = d3Time.timeMondays(start, end, 2);
countableI = d3Time.timeTuesday;
dateArray = d3Time.timeTuesdays(start, end);
countableI = d3Time.timeSecond;
dateArray = d3Time.timeSeconds(start, end);
dateArray = d3Time.timeSeconds(start, end, 120);
countableI = d3Time.timeMinute;
dateArray = d3Time.timeMinutes(start, end);
dateArray = d3Time.timeMinutes(start, end, 5);
countableI = d3Time.timeHour;
dateArray = d3Time.timeHours(start, end);
dateArray = d3Time.timeHours(start, end, 2);
countableI = d3Time.timeDay;
dateArray = d3Time.timeDays(start, end);
dateArray = d3Time.timeDays(start, end, 2);
countableI = d3Time.timeWeek;
dateArray = d3Time.timeWeeks(start, end);
dateArray = d3Time.timeWeeks(start, end, 2);
countableI = d3Time.timeSunday;
dateArray = d3Time.timeSundays(start, end);
dateArray = d3Time.timeSundays(start, end, 2);
countableI = d3Time.timeMonday;
dateArray = d3Time.timeMondays(start, end);
dateArray = d3Time.timeMondays(start, end, 2);
countableI = d3Time.timeTuesday;
dateArray = d3Time.timeTuesdays(start, end);
dateArray = d3Time.timeTuesdays(start, end, 2);
dateArray = d3Time.timeMilliseconds(start, end, 60000);
countableI = d3Time.timeSecond;
dateArray = d3Time.timeSeconds(start, end);
dateArray = d3Time.timeSeconds(start, end, 120);
countableI = d3Time.timeMinute;
dateArray = d3Time.timeMinutes(start, end);
dateArray = d3Time.timeMinutes(start, end, 5);
countableI = d3Time.timeHour;
dateArray = d3Time.timeHours(start, end);
dateArray = d3Time.timeHours(start, end, 2);
countableI = d3Time.timeDay;
dateArray = d3Time.timeDays(start, end);
dateArray = d3Time.timeDays(start, end, 2);
countableI = d3Time.timeWeek;
dateArray = d3Time.timeWeeks(start, end);
dateArray = d3Time.timeWeeks(start, end, 2);
countableI = d3Time.timeSunday;
dateArray = d3Time.timeSundays(start, end);
dateArray = d3Time.timeSundays(start, end, 2);
countableI = d3Time.timeMonday;
dateArray = d3Time.timeMondays(start, end);
dateArray = d3Time.timeMondays(start, end, 2);
countableI = d3Time.timeTuesday;
dateArray = d3Time.timeTuesdays(start, end);
countableI = d3Time.timeSecond;
dateArray = d3Time.timeSeconds(start, end);
dateArray = d3Time.timeSeconds(start, end, 120);
countableI = d3Time.timeMinute;
dateArray = d3Time.timeMinutes(start, end);
dateArray = d3Time.timeMinutes(start, end, 5);
countableI = d3Time.timeHour;
dateArray = d3Time.timeHours(start, end);
dateArray = d3Time.timeHours(start, end, 2);
countableI = d3Time.timeDay;
dateArray = d3Time.timeDays(start, end);
dateArray = d3Time.timeDays(start, end, 2);
countableI = d3Time.timeWeek;
dateArray = d3Time.timeWeeks(start, end);
dateArray = d3Time.timeWeeks(start, end, 2);
countableI = d3Time.timeSunday;
dateArray = d3Time.timeSundays(start, end);
dateArray = d3Time.timeSundays(start, end, 2);
countableI = d3Time.timeMonday;
dateArray = d3Time.timeMondays(start, end);
dateArray = d3Time.timeMondays(start, end, 2);
countableI = d3Time.timeTuesday;
dateArray = d3Time.timeTuesdays(start, end);
dateArray = d3Time.timeTuesdays(start, end, 2);
const dayRect = svgUpdate.select(".days").selectAll(".day").data(function (d) { return d3TimeDays(new Date(d, 0, 1), new Date(d + 1, 0, 1)); });
const dayRectUpdate = dayRect.enter().append("rect")
yearRange.forEach((year, i) => {
const yearStart = new Date(year, 0, 1)
const yearEnd = new Date(year + 1, 0, 1)
days = days.concat(
timeDays(yearStart, yearEnd).map(dayDate => {
return {
date: dayDate,
day: dayFormat(dayDate),
size: cellSize,
...cellPosition(originX, originY, dayDate, i),
}
})
)
const yearMonths = timeMonths(yearStart, yearEnd).map(monthDate => ({
date: monthDate,
year: monthDate.getFullYear(),
month: monthDate.getMonth(),
...memoMonthPathAndBBox({
originX,
originY,
export const generateDayCounts = (from, to, maxSize = 0.9) => {
const days = timeDays(from, to)
const size =
Math.round(days.length * (maxSize * 0.4)) +
Math.round(Math.random() * (days.length * (maxSize * 0.6)))
const dayFormat = timeFormat('%Y-%m-%d')
return shuffle(days)
.slice(0, size)
.map(day => {
return {
day: dayFormat(day),
value: Math.round(Math.random() * 400),
}
})
}