Filtering function with Dc.Js and Update Jquery Datatable
up vote
3
down vote
favorite
I have this function to refresh my charts with Dc.Js And update the selected features on my leaflet map.
// Called when dc.js is filtered (typically from user click interaction)
var onFilt = function(chart, filter) {
updateMap(locations.top(Infinity));
};
So it filter on my bar chart in 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));
};
I also have a datable in Jquery that I want to refresh when interacting with the charts. I've tried different things to modify my variable 'var onFilt' but cant get it works.
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));
};
});
Is there a way to modify my 'var onFilt' so it will update my the datable also?
javascript jquery leaflet dc.js
add a comment |
up vote
3
down vote
favorite
I have this function to refresh my charts with Dc.Js And update the selected features on my leaflet map.
// Called when dc.js is filtered (typically from user click interaction)
var onFilt = function(chart, filter) {
updateMap(locations.top(Infinity));
};
So it filter on my bar chart in 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));
};
I also have a datable in Jquery that I want to refresh when interacting with the charts. I've tried different things to modify my variable 'var onFilt' but cant get it works.
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));
};
});
Is there a way to modify my 'var onFilt' so it will update my the datable also?
javascript jquery leaflet dc.js
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I have this function to refresh my charts with Dc.Js And update the selected features on my leaflet map.
// Called when dc.js is filtered (typically from user click interaction)
var onFilt = function(chart, filter) {
updateMap(locations.top(Infinity));
};
So it filter on my bar chart in 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));
};
I also have a datable in Jquery that I want to refresh when interacting with the charts. I've tried different things to modify my variable 'var onFilt' but cant get it works.
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));
};
});
Is there a way to modify my 'var onFilt' so it will update my the datable also?
javascript jquery leaflet dc.js
I have this function to refresh my charts with Dc.Js And update the selected features on my leaflet map.
// Called when dc.js is filtered (typically from user click interaction)
var onFilt = function(chart, filter) {
updateMap(locations.top(Infinity));
};
So it filter on my bar chart in 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));
};
I also have a datable in Jquery that I want to refresh when interacting with the charts. I've tried different things to modify my variable 'var onFilt' but cant get it works.
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));
};
});
Is there a way to modify my 'var onFilt' so it will update my the datable also?
javascript jquery leaflet dc.js
javascript jquery leaflet dc.js
edited Nov 5 at 8:42
asked Nov 5 at 1:47
Simon GIS
748
748
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31
add a comment |
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147308%2ffiltering-function-with-dc-js-and-update-jquery-datatable%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I don't understand. A datatable usually doesn't filter anything; it responds to filters. So you would want to listen to any filters on the other charts and then update the datatable, no?
– Gordon
Nov 5 at 5:05
Hi Gordon, Yes your right! So yes i need to update table in function of the filter selected.
– Simon GIS
Nov 5 at 5:31