Skip to content

Instantly share code, notes, and snippets.

@ramiroaznar
Created October 14, 2016 08:12
Show Gist options
  • Save ramiroaznar/1b47e48161ddf7c7c7fe62acbda1d7fe to your computer and use it in GitHub Desktop.
Save ramiroaznar/1b47e48161ddf7c7c7fe62acbda1d7fe to your computer and use it in GitHub Desktop.
Torque bubble + chroropleth Map Viz Style
/** Torque bubble + chroropleth Map Viz */
Map {
-torque-frame-count:150;
-torque-animation-duration:30;
-torque-time-attribute:"date";
-torque-aggregation-function:"sum(norm)";
-torque-resolution:4;
-torque-data-aggregation:linear;
}
#layer {
comp-op: multiply;
marker-fill-opacity: 0.7;
marker-line-width: 0.4;
marker-line-opacity: 1;
marker-width: 8;
marker-allow-overlap: true;
marker-fill: rgb(223,253,251);
marker-line-color: #BCEEEA ;
}
#layer {
[value >= 0] {
marker-fill: #5c53a5;
marker-width: 2
}
[value >= 25] {
marker-fill: #a059a0;
marker-width: 4
}
[value >= 50] {
marker-fill: #ce6693;
marker-width: 8
}
[value >= 75] {
marker-fill: #eb7f86;
marker-width: 16
}
[value >= 100] {
marker-fill: #f8a07e;
marker-width: 32
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment