Browse Source

HUE-2679 [search] Re-enable mapchart refresh

Enrico Berti 10 years ago
parent
commit
3a35659f9d
1 changed files with 3 additions and 4 deletions
  1. 3 4
      desktop/core/src/desktop/static/desktop/js/ko.charts.js

+ 3 - 4
desktop/core/src/desktop/static/desktop/js/ko.charts.js

@@ -228,7 +228,6 @@ ko.bindingHandlers.timelineChart = {
         _d3.selectAll("g.nv-x.nv-axis g text").each(function (d){
           insertLinebreaks(d, this);
         });
-        //_d3.selectAll('.nv-brush').attr('display', 'none');
         _d3.selectAll(".nv-brush").call(_chart.brush().clear());
     }
   }
@@ -617,6 +616,9 @@ ko.bindingHandlers.mapChart = {
         $(element).hide();
       }
     }
+    else {
+      ko.bindingHandlers.mapChart.render(element, valueAccessor);
+    }
 
   }
 };
@@ -766,7 +768,6 @@ function lineChartBuilder(element, options, isTimeline) {
   }
 }
 
-
 function barChartBuilder(element, options, isTimeline) {
   var _datum = options.transformer(options.datum);
   $(element).height(300);
@@ -1104,7 +1105,6 @@ ko.bindingHandlers.partitionChart = {
   }
 };
 
-
 function chartsUpdatingState() {
   $(document).find("svg").css("opacity", "0.5");
 }
@@ -1113,7 +1113,6 @@ function chartsNormalState() {
   $(document).find("svg").css("opacity", "1");
 }
 
-
 var tipBuilder = function () {
   var direction = d3_tip_direction,
       offset = d3_tip_offset,