具有Dc.Js和Update Jquery Datatable的过滤功能

时间:2018-11-05 01:47:31

标签: javascript jquery leaflet dc.js

我具有使用Dc.Js刷新我的图表并更新我的传单地图上所选功能的功能。

  // Called when dc.js is filtered (typically from user click interaction)
            var onFilt = function(chart, filter) {
              updateMap(locations.top(Infinity));
            };

因此它过滤了我在Dc.Js中的条形图。

 citiesChart.on("filtered", function (chart, filter) {  

    //console.log('11111111111');
    //console.log(locations.top(Infinity));                 
      updateMap(locations.top(Infinity));

}); 

      dc.renderAll();

// Called when dc.js is filtered (typically from user click interaction)
var onFilt = function(chart, filter) {
console.log('fffff');
  updateMap(locations.top(Infinity));
};        

我在Jquery中也有一个datable,我想在与图表交互时刷新它。我尝试了其他方法来修改变量“ var onFilt”,但无法正常工作。

datatable.on("filtered", function (chart, filter) { 

    //console.log('11111111111');
    //console.log(locations.top(Infinity));                 
      updateMap(locations.top(Infinity));

}); 

      dc.renderAll();

    // Called when dc.js is filtered (typically from user click interaction)
    var RefreshTable = function(chart, filter) {
    console.log('fffff');
      updateMap(locations.top(Infinity));


    };        

    });

有没有办法修改我的“ var onFilt”,以便它也可以更新我的数据?

0 个答案:

没有答案
相关问题