function makeCartogram(layout) {
return Object.entries(STATES_ELECTORATES_CELLS)
.flatMap(([state, electorates]) =>
Object.entries(electorates).map(([abbreviation, [x, y]]) => ({
state,
abbreviation,
x: x + layout[state][0],
y: y + layout[state][1]
}))
)
.map((cell, i) => ({
...cell,
electorate: DIVISIONS[i]
}));
}