function draw() {
const svg = d3.select(DOM.svg(width, height));
svg.append("path")
.datum(cumulativeByDate)
.attr("fill", areaColor)
.attr("d", area);
svg.append("path")
.datum(cumulativeByDate)
.attr("fill", "none")
.attr("stroke", lineColor)
.attr("stroke-width", lineWidth)
.attr("d", line);
svg.append("circle")
.attr("cx", x(filteredData.endDate))
.attr("cy", y(filteredData.length))
.attr("fill", lineColor)
.attr("r", circleRadius);
svg.append("g")
.call(xAxis);
svg.append("g")
.call(yAxis);
return svg.node();
}