{
const svg = d3.create("svg").attr("width", width).attr("height", height);
svg
.append("rect")
.attr("width", width)
.attr("height", height)
.attr("fill", "#999");
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
svg
.selectAll(".stateLines")
.data(preparedData)
.enter()
.append("path")
.attr("d", (d) => line(d))
.attr("fill", "none")
.attr("stroke", "white")
.attr("stroke-width", 0.1)
.on("mouseover", (e, d) => console.log(d[0].city));
return svg.node();
}