calendar = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height*2.0])
.attr("font-family", "sans-serif")
.attr("font-size", 10);
const year = svg.append("g")
.attr("transform", `translate(40.5,${cellHeight * 5.0})`);
year.append("g")
.attr("text-anchor", "end")
.selectAll("text")
.data(d3.range(7))
.join("text")
.attr("x", -5)
.attr("y", i => (i + 0.5) * cellHeight)
.attr("dy", "0.31em")
.text(formatDay);
year.append("text")
.attr("x", -5)
.attr("y", -5)
.attr("font-weight", "bold")
.attr("text-anchor", "end")
.text(ACTIVEYEAR);
year.append("g")
.selectAll("rect")
.data(viewable_year_cal_all_day_data)
.join("rect")
.attr("width", cellWidth - 1)
.attr("height", cellHeight - 1)
.attr("x", d => timeWeek.count(d3.utcYear(d), d) * cellWidth + 0.5)
.attr("y", d => d.getUTCDay() * cellHeight + 0.5)
.attr("fill", d => "#ededed")
.attr("fill-opacity", d => "1.0")
.attr('stroke-width', '0.25')
.attr("stroke", "black")
.attr("stroke-opacity", d => "0.0");
return svg.node();
}