chart2 = {
const color = d3.scaleQuantize([20000, 2500000], d3.schemeBlues[9])
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
const g = svg.append('g')
g.append('g')
.selectAll('path')
.data(waData)
.join('path')
.attr('class', 'state')
.attr('d', path)
.attr('id', 'state')
.attr("stroke-width", 1)
.attr("stroke", 'black')
.attr("fill", 'white')
g.append('g')
.attr('class', 'counties')
.selectAll('path')
.data(countiesData)
.join('path')
.attr('clip-path', 'url(#clip-state)')
.attr('class', 'county')
.attr('d', path)
.attr("stroke-width", 0.4)
.attr("stroke", 'darkgray')
.attr("fill", d => color(populationData.get(d.id)))
return svg.node();
};