{
const data = houseGOP
const districts = [...new Set(data.map(d => d.AreaNum.replace(" 00"," ").replace(" 0"," ")))].sort()
return legislativeTable({
title: `GOP house primaries as of ${timeFormat(new Date())}`,
districts: districts.map(district => {
const candidates = data.filter(d => district === d.AreaNum.replace(" 00"," ").replace(" 0"," "))
const totals = makeTotals(candidates)
return { district, totals }
}),
shader: (d,i) => '#d73027',
})
}