renderData = [
{
append: 'g',
children: topojson.feature(us, us.objects.counties).features.map(d => ({
append: 'path',
fill: color(data.get(d.id)),
d: path(d),
children: [
{
append: 'title',
text: `${d.properties.name}, ${states.get(d.id.slice(0, 2)).name}
${format(data.get(d.id))}`
}
]
}))
},
{
append: 'path',
fill: 'none',
stroke: 'white',
'stroke-linejoin': 'round',
d: path(topojson.mesh(us, us.objects.states, (a, b) => a !== b))
}
]