Skip to content

Instantly share code, notes, and snippets.

@mjrich
Created July 15, 2012 21:05
Show Gist options
  • Save mjrich/3118621 to your computer and use it in GitHub Desktop.
Save mjrich/3118621 to your computer and use it in GitHub Desktop.
Choropleth map styling code in Carto
#nbhdata {
line-color:#594;
line-width:0.5;
polygon-opacity:1; }
#nbhdata[R_HomeOwn >= 0 ] { polygon-fill: #f0ffe1; }
#nbhdata[R_HomeOwn >= 9] { polygon-fill: #d9fcb9; }
#nbhdata[R_HomeOwn >= 18] { polygon-fill: #bbef8e; }
#nbhdata[R_HomeOwn >= 27] { polygon-fill: #9ad363; }
#nbhdata[R_HomeOwn >= 36] { polygon-fill: #6e843f; }
@mjrich
Copy link
Author

mjrich commented Jul 15, 2012

nbhdata = your gis data file

R_HomeOwn = your variable of interest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment