I followed the example in zoomcharts documentation on how to replace data on NetChart. When I call replaceData() on the chart instance, nothing happened, nothing is displayed, no error shown.
But when I set the data as preloaded (as per below), the network appears.
chart = new zc.NetChart({
data: [
{
preloaded: {
nodes: [Array of nodes],
links: [Array of links],
},
},
],
...
})
When I visit the documentation for the "Replace Data" example, I see a JSFiddle for it. That example changes the data dynamically with the "replaceData()" function and it seems to work fine for me. See here: https://jsfiddle.net/egd1kj9x/
Maybe you could copy that example and work from there to figure out what's different between the example and what you're trying to do?
Here's the example in full: