Comments (2)
Hi @EmmaU25, it seems the error you're having is in the loading application and unrelated to 3d-force-graph. I've tried just the graph section with your data and it seems to work as intended:
<body>
<script src="https://unpkg.com/3d-force-graph"></script>
<div id="3d-graph"></div>
<script>
const data = {"links":[{"source":0,"txt":" X","color":"BLACK","target":1},{"source":0,"txt":" X","color":"GREEN","target":2},{"source":1,"txt":" X","color":"BLACK","target":3},{"source":2,"txt":" Y","color":"GREEN","target":1},{"source":3,"txt":" X","color":"BLACK","target":1},{"source":3,"txt":" X","color":"GREEN","target":4},{"source":4,"txt":" Y","color":"GREEN","target":2},{"source":4,"txt":" X","color":"GREEN","target":5},{"source":5,"txt":" Y","color":"GREEN","target":6}],"nodes":[{"id":0},{"id":1},{"id":2},{"id":3},{"id":4},{"id":5},{"id":6}]};
ForceGraph3D()
(document.getElementById('3d-graph'))
.graphData(data);
</script>
</body>
from 3d-force-graph.
But the way in which I pass the variable to 3d-force-graph is fine?
from 3d-force-graph.
Related Issues (20)
- Latest release seems to elicit new warning in browser console HOT 1
- How do I turn off `setTimeout` and `requestAnimationFrame` from the last render HOT 1
- Node border HOT 1
- black holes HOT 1
- How to use StereoCamera in renderControl? HOT 10
- breaking changes: node color & plane color issue HOT 1
- Forces re-calculating when doing incremental updates with no changes. HOT 4
- Redo/Undo feature HOT 3
- link arrow size become adjustable HOT 2
- adding a hover or click listener to an external asset HOT 3
- Dynamic Particles do not appear for fixed Nodes HOT 1
- Issue with scene hyper-intensive illumination (probably after 1.73.0) HOT 2
- Shadow for links and nodes HOT 1
- How to add a loader to the node HOT 1
- Html rerendering on drag
- continuous scale node color
- 我画布上的所有节点都没有链接,点击节点之后,节点会向外扩散
- LOD for abnormally large graphs
- onNodeClick work error
- Default Settings for "charge" force not clear in documentation please help!!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 3d-force-graph.