Currently, I am using d3 to create charts with nodes and links connecting them. In order to retrieve the data, I have used a json file named link.json and accessed it using the following code:
d3.json("link.json", function(error, graph) {}
Although this method is working fine, the data in the json file is not dynamic. To make it more dynamic, I would need to call a servlet instead of directly accessing the json file. Unfortunately, I am unsure of how to do this. If anyone could offer assistance, I would greatly appreciate it.