vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.77k stars 832 forks source link

how can I display a force directed graph on a sphere? #555

Open AbsoluteZeroGithub opened 2 years ago

AbsoluteZeroGithub commented 2 years ago

image Hello, how can I display a force directed graph on a sphere? It's like sticking a 2d force-directed map on a sphere

gorbiz commented 1 year ago

@AbsoluteZeroGithub Did you ever figure this out? I'm aspiring to do the same thing.

vasturiano commented 1 year ago

You could try using a radial force to attract nodes onto the surface of a sphere. Here's an example: https://observablehq.com/@vasturiano/3d-radial-force