{
const svg = d3.create("svg")
.attr("viewBox", `0 0 ${width} ${height}`)
svg.append("path")
.datum(graticule)
.attr("d", path)
.attr("stroke", "#ccc")
.attr("fill", "none")
const countriesPath = svg.append("g")
.attr("id", "countries")
.selectAll("path")
.data(countries.features)
.enter()
.append("path")
.attr("d", path)
.attr("stroke", "#ccc")
.attr("fill", "steelblue")
.on("mouseover", function(d) { d3.select(this).attr("fill", "red")})
.on("mouseout", function() { d3.select(this).attr("fill", "steelblue")})
svg.append("path")
.datum(outline)
.attr("d", path)
.attr("fill", "none")
.attr("stroke", "#222")
return svg.node();
}