Candidates' party affiliations obtained from the 9/1/1875 Sacramento Daily Record-Union. https://www.cdnc.ucr.edu/?a=d&d=SDU18750901.2.34.3&e=-------en--20--1--txt-txIN--------
Source for Popular Vote data: California State Archives, "Attorney General," Abstract of Votes for State Offices Polled throughout the State of California at a General Election held September 1st 1875 (Sacramento, 1875)