ready = function(svg, countries, basemapGroup, bandsTemp, path, colorScale, intervalsTemp){
basemapGroup.insert("path", ".map")
.datum(countries)
.attr("d", path)
.style("opacity", "0.4")
.style("fill", "#eee")
.style("stroke", "#999")
.style("stroke-width", "1px")
const states =
bandsTemp.features.forEach(function(d, i) {
svg.insert("path", ".streamline")
.datum(d)
.attr("d", path)
.style("fill", colorScale(intervalsTemp[i]))
.style("stroke", "None");
});
return svg
}