fkling / fkling/JSNetworkX

jsnetworkx.js:5 Uncaught TypeError: Cannot read property 'force' of undefined

Open
#62 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
779
Forks
178
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to draw the graph, but always get this error:
jsnetworkx.js:5 Uncaught TypeError: Cannot read property 'force' of undefined

Even if I try sth. like this:
` G = new jsnx.Graph();

```
G.addNode(1);
G.addNode(2);

G.addEdge(1,2);

jsnx.draw(G, {
element: '#canvas',
withLabels: false
});`
```

Does someone have an idea what's the reason for this?

D3 is included.

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.