question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Force Directed Graph not rendering correctly

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior

In the demo, if you choose Force Directed Graph, the graph that gets rendered does not include the correct edges. Even if I modify generateGraph in data.ts the graph looks wrong: edges are missing. Expected behavior

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • ngx-charts version: x.x.x
  • Angular version: 2.x.x
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
marjan-georgievcommented, May 8, 2019

@MartinoMensio correct. Please use ngx-graph. We added support for custom layouts in v6, and it can do all that the force directed chart can do and much more. We are deprecating force-directed chart and will be removing it in the next major version in favor of ngx-graph.

1reaction
MartinoMensiocommented, May 1, 2019

@ngocson18081195 I think the best option is to use ngx-graph (another package from swimlane) https://github.com/swimlane/ngx-graph that seems more updated and also supports the force directed graph https://swimlane.github.io/ngx-graph/#layouts#force-directed

Read more comments on GitHub >

github_iconTop Results From Across the Web

d3 force directed graph not rendering properly - Stack Overflow
I am trying to render the d3 forced direct grpah, but as you can see it is not utilising right side of the...
Read more >
[Solved]-Graph not rendering my Date data-d3.js
Coding example for the question Graph not rendering my Date data-d3.js. ... d3.time.scale function takes in a javascript date object. in your line...
Read more >
Cytoscape.js
Graph theory / network library for analysis and visualisation - compatible with CommonJS/Node.js/Browserify/Webpack, AMD/Require.js, npm, ...
Read more >
Force-directed graph rendered on HTML5 canvas
A web component to represent a graph data structure in a 2-dimensional canvas using a force-directed iterative layout. Uses HTML5 canvas for rendering...
Read more >
Three.js and R - CRAN
graphjs: an interactive force directed graph widget; scatterplot3js: a ... Safari on Mac OS X seems to fall back to Canvas (not WebGL)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found