For a particular year, the noted partisan composition is that which either took office during that year or which maintained the office throughout the year. Only changes made outside regularly scheduled elections are noted as affecting the partisan composition during a particular year. Shading is determined by the final result of any mid-cycle changes in partisan affiliation.