covidBloody = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
svg.append("g").call(grid);
svg
.append("text")
.attr("x", width / 2)
.attr("y", 60)
.attr("font-size", 40)
.attr("text-anchor", "middle")
.text("Tjedne COVID smrti");
svg
.selectAll("rect")
.data(weeklyData)
.enter()
.append("rect")
.attr("fill", "#C5161D")
.attr("width", xBand.bandwidth() + 1)
.attr("height", 0)
.attr("x", (d, i) => xBand(i))
.attr("y", margin.top)
.transition()
.duration((d, i) => 3000 + Math.random() * 1500)
.attr("height", (d) => y(d.sum) - margin.top);
var fontSizeLabel = Math.floor(width / 58);
svg
.append("text")
.attr("x", x(new Date(2020, 11, 22)))
.attr("y", y(100))
.attr("font-size", fontSizeLabel)
.attr("font-family", "sans-serif")
.attr("fill", "white")
.attr("text-anchor", "middle")
.attr("opacity", 0.75)
.text("UKUPNO");
svg
.append("text")
.attr("x", x(new Date(2020, 11, 22)))
.attr("y", y(100) + fontSizeLabel * 1.25)
.attr("font-size", Math.floor(width / 58))
.attr("font-family", "sans-serif")
.attr("fill", "white")
.attr("text-anchor", "middle")
.attr("opacity", 0.75)
.text("UMRLIH");
var countTextNumber = svg
.append("text")
.attr("x", x(new Date(2020, 11, 22)))
.attr("y", y(100) + fontSizeLabel * 3)
.attr("font-size", Math.floor(width / 35))
.attr("fill", "white")
.attr("text-anchor", "middle")
.text(d3.format(",")(total));
return svg.node();
}