excessDeaths = {
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("font-family", "sans-serif")
.attr("font-size", 10)
.attr("stroke-miterlimit", 1);
svg
.append("path")
.attr("fill", "grey")
.attr("fill-opacity", 0.4)
.attr("d", area(contextData));
svg
.append("path")
.attr("fill", "orange")
.attr("fill-opacity", 0.4)
.attr("d", area(data));
svg
.append('rect')
.attr('x', 0)
.attr('y', y(0))
.attr('fill', 'white')
.attr('width', width)
.attr('height', 200);
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
svg.append("g").call(yAxisRight);
svg.append("g").call(grid);
svg
.append("path")
.attr("fill", "none")
.attr('stroke', 'grey')
.attr('stroke-width', 1.5)
.attr("d", line(contextData));
svg
.append("path")
.attr("fill", "none")
.attr('stroke', 'orange')
.attr('stroke-width', 1.5)
.attr("d", line(data));
svg
.append('path')
.attr("fill", "grey")
.attr("fill-opacity", 0.15)
.attr("d", p95area(contextData));
svg
.append('path')
.attr("fill", "grey")
.attr("fill-opacity", 0.15)
.attr("d", p95area(data));
return svg.node();
}