anchor.diff:      $(document).on('renderBudgetLineCategory', function(e){
         $('.metric').removeClass('selected');
         var year = $('body').data('year');
  -      console.log(year, e.kind, e.area, e.code);
   
         layer.show();
   
  -      var query = "select t.cartodb_id, t.place_id, t.nameunit as name, t.the_geom, t.the_geom_webmercator, i.code, i.kind, i.area, i.amount, i.amount_per_inhabitant as value from ign_spanish_adm3_municipalities_displaced_canary as t full join planned_budgets_"+year+" as i on i.place_id = t.place_id" +
  -                  " WHERE code='"+e.code+"' AND kind='" + e.kind + "' AND area='" + e.area[0] + "'";
  +      var query = "select i.cartodb_id, t.place_id, t.nameunit as name, t.the_geom, t.the_geom_webmercator, i.code, i.kind, i.area, i.amount, i.amount_per_inhabitant as value from ign_spanish_adm3_municipalities_displaced_canary as t full join planned_budgets_"+year+" as i on i.place_id = t.place_id" +
  +      " WHERE code='"+e.code+"' AND kind='" + e.kind + "' AND area='" + e.area[0] + "'";
         console.log(query);
         layer.setSQL(query);
   
  
positive.code:     $('[data-indicator]').click(function(e){
        var year = $('body').data('year');
        var indicator = $('.metric.selected').data('indicator');
  
        console.log(year, indicator);
  
        layer.show();
  
        var query = "select t.cartodb_id, t.place_id, t.nameunit as name, t.the_geom, t.the_geom_webmercator, i."+indicator+" as value from ign_spanish_adm3_municipalities_displaced_canary as t full join indicators_"+year+" as i on i.place_id = t.place_id";
        console.log(query);
        layer.setSQL(query);
  
  
negative.code:     loaderControl: false
    })
    .done(function(vis, layers) {
      var sublayer = layers[1].getSubLayer(0);
      vis.addOverlay({
        type: 'tooltip',
  