How do I make a simple time-based (year-by-year) map in CartoDB Torque?

المشرف العام

Administrator
طاقم الإدارة
I'm trying to make a very simple time-based map using CartoDB. My time data is in its own column of type DATE. The lowest date in the range is 2007-01-01 and the greatest is 2014-01-01, so I set the following line in my CartoCSS:

-torque-frame-count:8;My understanding is that the Torque library should be able to identify the lowest and highest values in my time column, and set even increments for the time slider.

Unfortunately, the generated map does not accurately track the start and end dates. Instead, it identifies 12/2006 as the start date, and 2/2013 as the end date. The intervals between, instead of falling on the start of the year, fall at odd points in between. It's unclear to me where the data is being pulled from, as I don't have any mid-year values, and I've disabled "trails".

It would be best if I could disable the display of months entirely from the legend display, although my understanding from looking at other questions is that this could only be accomplished with specialized JS.



أكثر...
 
أعلى