Candidates' party affiliations obtained from the 9/4/1867 Sacramento Daily Union. https://www.cdnc.ucr.edu/?a=d&d=SDU18670904.2.16.4&e=-------en--20--1--txt-txIN--------
Source for Popular Vote data: California State Archives, "Attorney General," Abstract of the Votes polled at a General Election Held in the State of California on Wednesday the Fourth day of September A.D. 1867 (Sacramento, 1867)