Birth, death, and legacy: Chemical evolution and star formation and death in galaxies