Skip to content

Instantly share code, notes, and snippets.

@andrewxhill
Created June 2, 2014 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewxhill/48aebf8193c0b5066a3b to your computer and use it in GitHub Desktop.
Save andrewxhill/48aebf8193c0b5066a3b to your computer and use it in GitHub Desktop.
size by column sum
Map {
-torque-frame-count:128;
-torque-animation-duration:30;
-torque-time-attribute:"time_column";
-torque-aggregation-function:"sum(whatever_column)";
-torque-resolution:2;
-torque-data-aggregation:"cumulative";
}
#table_name {
marker-width: 4;
marker-opacity: 0.9;
marker-allow-overlap: true;
marker-placement: point;
marker-type: ellipse;
marker-line-width: 2;
marker-line-color: #ffffff;
marker-line-opacity: 1;
[value > 10]{
marker-width: 5;
}
[value > 100]{
marker-width: 8;
}
}
#table_name[frame-offset=1] {
marker-width:4.5;
marker-opacity:0.45;
[value > 10]{
marker-width: 6;
}
[value > 100]{
marker-width: 10;
}
}
#table_name[frame-offset=2] {
marker-width:6;
marker-opacity:0.225;
[value > 10]{
marker-width: 8;
}
[value > 100]{
marker-width: 14;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment