E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Gerrymander (g hard).
So to divide a county or nation into representative districts as to give one special political party undue advantage over others. The word is derived from Elbridge Gerry, who adopted the scheme in Massachusetts when he was governor. Gilbert Stuart, the artist, looking at the map of the new distribution, with a little invention converted it into a sala-mander. No, no! said Russell, when shown it, not a Sala-mander, Stuart; call it a Gerry-mander.
To gerrymander is so to hocuspocus figures, etc., as to affect the balance.