{
const svg = d3.select(DOM.svg(width, usWeatherHistoryHeight + 35));
svg.append("g")
.attr("stroke", "#000")
.attr("stroke-opacity", 0.2)
.selectAll("circle")
.data(usWeatherHistoryData)
.enter().append("circle")
.attr("cx", d => x2(d.dateDisplay))
.attr("cy", d => y2(d.actualMeanTemperature))
.attr("fill", "red")
.attr("r", 1.75);
svg.append("path")
.datum(usWeatherHistoryData)
.attr("stroke", "red")
.attr("stroke-opacity", 0.8)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("stroke-width", 1.5)
.attr("fill", "none")
.attr("d", usWeatherHistoryAvgLine);
svg.append("g")
.call(xAxis2)
.selectAll("text")
.attr("transform", "translate(-48, 48) rotate(-48)")
.style("text-anchor", "start")
.style("font-size", 12);
svg.append("g")
.call(yAxis2)
.selectAll("text")
.style("font-size", 12);
svg.append("text")
.text("US Mean Temperature Statistics (July 2014 - July 2015)")
.attr("transform", `translate (${width / 4}, 20)`)
.style("font-family", "Calibri")
.style("font-size", 20)
.style("font-weight", "bold");
return svg.node();
}