I am new to D3 and I have a graph like this example: http://bl.ocks.org/jhb/5955887 I have some buttons to add/delete nodes and edges and the json file where I take the dataset from is updated but not the visualisation. How can I update the graph to reflect the changes?
To get the data I am using:
d3.json("dataset.json", function(error,json) {
if (error) return console.warn(error);
dataset = json;
});