Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stateface mapping from full state name to letter
// cf. http://propublica.github.io/stateface/
var statefaceMap = {"Alaska":"A","Arizona":"D","Arkansas":"C","California":"E",
"Colorado":"F","Connecticut":"G","Delaware":"H","Florida":"I","Georgia":"J",
"Hawaii":"K","Idaho":"M","Illinois":"N","Indiana":"O","Iowa":"L","Kansas":"P",
"Kentucky":"Q","Louisiana":"R","Maine":"U","Maryland":"T","Massachusetts":"S",
"Michigan":"V","Minnesota":"W","Mississippi":"Y","Missouri":"X","Montana":"Z",
"Nebraska":"c","Nevada":"g","New Hampshire":"d","New Jersey":"e",
"New Mexico":"f","New York":"h","North Carolina":"a","North Dakota":"b",
"Ohio":"i","Oklahoma":"j","Oregon":"k","Pennsylvania":"l","Rhode Island":"m",
"South Carolina":"n","South Dakota":"o","Tennessee":"p","Texas":"q",
"Utah":"r","Vermont":"t","Virginia":"s","Washington":"u","West Virginia":"w",
"Wisconsin":"v","Wyoming":"x"};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment