Graph visualization library for angular (@swimlane/ngx-graph)
Questions tagged [ngx-graph]
38 questions
0
votes
0 answers
Trouble with ngx-graph dagre layout
I am struggling to make @swimlane/ngx-graph work for my project. I've invested a lot of work into getting it to this point, but as soon as I've tried to get the library to draw the edges between nodes, it starts generating errors. I've tried every…

John Lott
- 49
- 5
0
votes
0 answers
Angular Graphing Library Woes
I am struggling to make @swimlane/ngx-graph work for my project. I've invested a lot of work into getting it to this point, but as soon as I've tried to get the library to draw the edges between nodes, it generates a whole mess of errors. I've made…

John Lott
- 49
- 5
0
votes
0 answers
Ngx Charts Tooltip Runs in normal development mode, and on production fails
Using versions:
ngx-charts: 12.0.1
ngx-graph: 6.1.0
@angular/core": "~8.2.14"
Tried updating to several newer versions of ngx-charts, but no luck, Having the same issue here anyone found a solution to this issue so far? It only runs in normal…

Nouman Shah
- 103
- 1
- 9
0
votes
1 answer
Passing Parameter from SVG to template
I'm relativly new in SVG and i didn't find any solution online for my problem..
I have a line called link. In the end of it I have a marker - Arrow Head.
My line should be colored according to his settings and the head as well. But I didn't find a…

Raziza O
- 1,560
- 1
- 17
- 37
0
votes
1 answer
How do I get the id of a clicked node in ngx-graph?
Problem
I am using the ngx-graph library to build a flow diagram in Angular 9. I want to get the id value of a clicked node. I tried logging "$event" and looked through the PointerEvent object that displayed in the Console. I couldn't find the id…

Izin
- 11
- 2
0
votes
0 answers
ngx-graph often doesn't load in Angular page
I'm using ngx-graph for an org tree chart in an Angular 10 site and the chart often doesn't appear when the page loads (and it never loads in Cypress.io tests). There isn't any error, it just doesn't appear (big blank space) and I have to refresh…

beachCode
- 3,202
- 8
- 36
- 69
0
votes
1 answer
Change the link color of ngx--graph
on the ngx-graph, is it possible to change the link template?. if yes, how to change the color of the links. By default, it is black.

Abdul K Shahid
- 504
- 1
- 4
- 17
0
votes
0 answers
How to implement a drag and drop flowchart using angular 10?
I want to drag various flowchart shapes i.e basic shapes like rectangle, square, circle etc as well as flow shapes, connectors and BPMN shapes from left hand side component in angular 10 and drop it to right hand side angular canvas component and…

AVASH RANJAN DIXIT
- 11
- 2
0
votes
1 answer
NGX Graph linkTemplate - Links Middle Pointer alignment issue
I'm using the NGX Graph 'linkTemplate' to add circle in the middle of the link(Edge) but alignment is missing. I'm using transform property to align the circle in the middle of link. How to calculate exact coordinates to place the circle(with icon)…

Seshu Vuggina
- 725
- 1
- 8
- 16
0
votes
1 answer
NGX-Graph Nodes turns black when using third property
I'm trying to make a crone tree using ngx-graph, and link each node to a pop-up so i went for the "@material-extended/mde", the issue i have is that i'm trying to define the pop-up content by node, so i tried using the property "data". But, whenever…

Mouad
- 97
- 1
- 13
0
votes
0 answers
swimlane/ngx-graph Links are not displayed when data is updated via API calls
Diagram is displayed when data set statically. But when tried to integrate with API, links are failing to display.
I have verified data is successfully fetched and nodes and links successfully set to valid data.
Nodes are displayed and link labels…

shubham gorde
- 175
- 6
0
votes
2 answers
Center link lines on elements Ngx-Graph
I have been using ngx-graph for the first time. I am trying to restrict the link position on the elements they are linking. For example I have the situation below. I will have multiple links coming from the parents and going to children nodes.
All I…

GlitchEclipse
- 77
- 1
- 1
- 13
0
votes
1 answer
How do I inject settings into a DagreClusterLayout in ngx-graph?
I would like to move the label in the cluster node to the top instead of the center. While I could create my own custom layout, it seemed that there are some options in DagreClusterLayout that would probably do this for me when I look at the code
I…

MVinca
- 291
- 2
- 4
- 11
0
votes
1 answer
How to a add a ngx-graph custom Layout
All layouts are declared in LayoutService
projects/swimlane/ngx-graph/src/lib/graph/layouts/layout.service.ts
I can create a new Layout, but LayoutService#getLayout() cannot discover the new one.
const layouts = {
dagre: DagreLayout,
…

Marian Venin
- 111
- 1
- 5
0
votes
1 answer
[attr.fill]="node.options.color" is not working in ngx-graph
i am getting this error "ERROR TypeError: Cannot read property 'color' of undefined" in ngx-graph, this code i used in ngx-graph
…

prasanna reddy
- 1
- 1