I have a dataset containing the cost of damage caused by individual floods over the past 100 years. I'd like to use TORQUE to display these events on a map over time, with their severity shown by the size of the marker. ie lesser cost has a smaller marker size, greater cost has larger size.
Is there a torque aggregation function which will allow me to do this?
Here is the style I have so far, but the events still show up as one size...
/** torque visualization */
Map {
-torque-frame-count:1024;
-torque-animation-duration:30;
-torque-time-attribute:"date";
-torque-aggregation-function:"count(cartodb_id)";
-torque-resolution:4;
-torque-data-aggregation:cumulative;
}
#cdd_cost_1{
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1.5;
marker-line-opacity: 1;
marker-placement: point;
marker-multi-policy: largest;
marker-type: ellipse;
marker-fill: #FF5C00;
marker-allow-overlap: true;
marker-clip: false;
}
#cdd_cost_1 [ value <= 956350000] {
marker-width: 25.0;
}
#cdd_cost_1 [ value <= 47368494] {
marker-width: 23.3;
}
#cdd_cost_1 [ value <= 21000000] {
marker-width: 21.7;
}
#cdd_cost_1 [ value <= 14523061] {
marker-width: 20.0;
}
#cdd_cost_1 [ value <= 8300000] {
marker-width: 18.3;
}
#cdd_cost_1 [ value <= 5738341] {
marker-width: 16.7;
}
#cdd_cost_1 [ value <= 4029790] {
marker-width: 15.0;
}
#cdd_cost_1 [ value <= 2828222] {
marker-width: 13.3;
}
#cdd_cost_1 [ value <= 1668590] {
marker-width: 11.7;
}
#cdd_cost_1 [ value <= 572824] {
marker-width: 10.0;
}