Using a web component created by vasturiano, I am exploring the representation of a graph data structure in a 3-dimensional space with a force-directed iterative layout. This component utilizes ThreeJS/WebGL for 3D rendering and either d3-force-3d or ngraph for the underlying physics engine.
https://github.com/vasturiano/3d-force-graph
My goal is to adjust the size of the nodes (spheres) based on a hub centrality score specified in the dataset. While I understand that nodeVal([num, str or fn])
can be used for this purpose, I am unsure of the correct way to define it. Any assistance on this matter would be greatly appreciated.
If anyone has expertise in this area, could you please provide guidance?