Want to draw the whole data center resources and their relationship using NeXt. Got three questions while using NeXt tools.
- when the x, y position cannot confirm, whether NeXt can layout the nodes/links automatically to make sure each node do not cover each other, if NeXt can do it, how to do the setting in NeXt.
- whether NeXt can provide Drag & Drop functions to draw the topology.
- when you draw one datacenter network topology, whether you can save the topolpgy Data as json or other format.
1. You can do that using "Force" data processor. It will automatically spread out nodes without explicit assignment of position to each of them.
2. It's not supported by default, but you may try to accomplish that and contribute to the community.
3. topo.data() returns a topology object. You can export that object in JSON, or convert into any other data format.
- While using topology as below, observed that topology.data() method cannot return the expected topology data, just return one 'empty' object:
var topology = new nx.graphic.Topology(topologyConfig);
topology.data(topologyData);
console.log(topologyData) ---> return topologyData like: Object {nodes: Array[3], links: Array[2]}
console.log(topology.data()) ---> return empty object like: Object {nodes: Array[0], links: Array[0], nodeSet: Array[0]}
go to "topologyGenerated" method when we need to get the topodata, as below:
topo.on('topologyGenerated', function(){
console.log(topo.data());
})
Also recommend you to read tutorials: GitHub - NeXt-UI/next-tutorials: Get Started with NeXt UI Toolkit
Comments
0 comments
Please sign in to leave a comment.