write state_choropleth function.