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
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