0

I am new to CartoDB and NOT a programmer. I am trying to make a simple torque map that changes by year and I do not want the slider text to include or display the month, just the year.

Is this possible to do with little to no programming?.

1 Answer 1

1

You need some programming to do that:

 cartodb.createVis('map', 'http://andrew.cartodb.com/api/v2/viz/b5cece38-4af4-11e3-bfb4-3085a9a9563c/viz.json')
        .done(function(vis, layers) {
          var slider = vis.getOverlay('time_slider')
          slider.formatter(function(d) {
            return "month:" + d.getUTCMonth();
          })
        })

The complete example: http://bl.ocks.org/javisantana/9066265

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.