mapProps = ({
countyFillFunction: (loc) => {
return countyColorScale(data.get(loc.properties.FIPS));
},
countyMouseOverFunction: (loc) => {
mutable selectedDataValue = data.get(loc.properties.FIPS);
mutable selectedCountyName = loc.properties.location_name;
},
countyOnClickFunction: (loc) => {
console.log(loc);
},
colorScale: countyColorScale,
data: dataArray,
legendTitle: 'Population',
legendWidthScale: d3.scaleLog(),
legendTickFormat: d3.format('.1s'),
stateFIPSToInclude: region_state_FIPS,
})