The share of candidates who are people of color increased by a third in cities that switched to district-based elections.