Created
August 25, 2016 09:58
-
-
Save ramiroaznar/5ebd8e13c216bdf1ae53709b3e2c3319 to your computer and use it in GitHub Desktop.
CARTO Torque + choropleth style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** torque visualization */ | |
Map { | |
-torque-frame-count:256; | |
-torque-animation-duration:30; | |
-torque-time-attribute:"date"; | |
-torque-aggregation-function:"avg(total_damage/100000)"; | |
-torque-resolution:2; | |
-torque-data-aggregation:linear; | |
} | |
#railroad_data[frame-offset=1] { | |
marker-width:8; | |
marker-fill-opacity:0.45; | |
} | |
#railroad_data[frame-offset=2] { | |
marker-width:10; | |
marker-fill-opacity:0.225; | |
} | |
#railroad_data [ value <= 181] { | |
marker-fill: #B10026; | |
} | |
#railroad_data [ value <= 16.2959] { | |
marker-fill: #E31A1C; | |
} | |
#railroad_data [ value <= 2.55648] { | |
marker-fill: #FC4E2A; | |
} | |
#railroad_data [ value <= 1.4796] { | |
marker-fill: #FD8D3C; | |
} | |
#railroad_data [ value <= 0.62302] { | |
marker-fill: #FEB24C; | |
} | |
#railroad_data [ value <= 0.24804] { | |
marker-fill: #FED976; | |
} | |
#railroad_data [ value <= 0.2454] { | |
marker-fill: #FFFFB2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment