What is the best way to program a D3/json/ajax query that retrieves new data every 10 seconds?
Here is my initial attempt at a solution, but I believe it may not be ideal:
setInterval(function() {
d3.json("http://1.....", function(json) {
....
})
}, 1000);
Is this approach correct or is there a more effective method?
Thank you in advance.