colorList = {
const colors = d3.schemeCategory10;
const stateGeoms = voronoiStateTopojson.objects.states.geometries;
const colorList = stateGeoms.map(d => '');
const neighbors = topojson.neighbors(stateGeoms);
stateGeoms.forEach((d, i) => {
const color =
colors.find(
c =>
!neighbors[i].some(n => {
return colorList[n] === c;
})
) || colors[0];
colors.push(colors.shift());
colorList[i] = color;
});
return colorList;
}