The stated total for Hayden is 25,090 but the county figures add up to 25,100. The 1878 Legislative Manual also contains a misprint for Wilson in St. Croix County.
Candidates' party affiliations obtained from the 1878 Tribune Almanac. https://babel.hathitrust.org/cgi/pt?id=hvd.32044014654628&seq=657
Source for Popular Vote data: Wisconsin Board of State Canvassers, "Attorney General," Tabular Statement of the votes...at the General Election (Madison, 1877)