Pearl1594 commented on issue #6722:
URL: https://github.com/apache/cloudstack/issues/6722#issuecomment-1247980124

   @jack99trade so the data input structure would depend on the specific d3 
library that's being used I believe. For example, if you are using a network 
graph ( 
[https://d3-graph-gallery.com/network.html](https://d3-graph-gallery.com/network.html
 )) then we could structure it as follows:
   ```
   { "nodes": [
     { "id": 1, "name": "Net1" },
     { "id": 2, "name": "VM1" }
   ],
   "links": [
     { "source": 1, "target": 2 } ---> which would connect Net1 to VM1
   ]}
   ```
   
   But if you want to view it in a hierarchical manner then the data is 
structured differently  something like - 
https://github.com/bumbeishvili/sample-data/blob/main/sample.json and we need 
to take care of how the parentId is set in this case


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to