Questions tagged [dagre-d3]

Dagre is a JavaScript library that makes it easy to lay out directed graphs on the client-side. The dagre-d3 library acts as a front-end to dagre, providding actual rendering using D3

88 questions
0
votes
0 answers

Cannot implement dagre-d3.js in Julia Package

I am coding a Julia Package that implements d3.js and dagre-d3.js to display Directed Acyclic Graphs. I have a package "D3Graphs.jl" where I print script onto a webpage. I have the following in my julia code: print(io, """
0
votes
1 answer

Prevent crossing of arrows in dagre-d3

I have recently started using dagre-d3 and I found it neat until I needed to do larger graphs. The algorithm leads to these kind of situations: image here As seen above, the two nodes should be connected by two arrows. However, Dagre's algorithm…
universvm
  • 353
  • 2
  • 11
0
votes
1 answer

setting d3 graph from inside of an anonymous function

I am trying to read a JSON file which looks like: [ { "parent" : "cmeta_transform", "path" : "hcat://sample/dt=yyyyMMddHH", "child" : "lite_video_hourly" } ] Then, I am iterating over the contents and setting the Node and Edges from inside the…
figaro
  • 2,263
  • 3
  • 20
  • 27
0
votes
0 answers

Changing HTML label in Dagre d3 using jquery

I'm trying to dynamically change the HTML in a node label in Dagre D3: $('.unselected-node').find('.inputTemplate').css( "display", "inline-block" ); However, this doesn't work. The only way I'm able to change .unselected-node is by accessing the…
db2791
  • 1,040
  • 6
  • 17
  • 30
0
votes
1 answer

Using Dagre-D3 with Meteor

I'm trying to use Dagre-D3 to create a simple directed graph that adds nodes from a text input. Unfortunately, the graph just refuses to draw.. and I think it's because my "Nodes.find({}).forEach(function (n) {..." doesn't appear to run. Any ideas…
lyn
  • 75
  • 5
0
votes
1 answer

Why does ngDirective `template` allow for correct `clientHeight` but `templateUrl` gives 0

TL/DR plunker // Foreign object is the right size template: "

{{name}}

", but // Foreign object is size 0 why is that? templateUrl: "dialog.html", FULL I have a plunker that demos what I am talking about. I am using a d3 library called…
Jackie
  • 21,969
  • 32
  • 147
  • 289
0
votes
1 answer

add color to node dagre d3

I have created a tree structure following the link Reading DOT files in javascript/d3 I need to fill the nodes with color. Tree data: I tried adding [label="abcd" labelStyle="font: 300 14px" style=filled fillcolor=red] [label="abcd" style=filled…
Harsha
  • 33
  • 9
0
votes
1 answer

How to create svg shape from string markup (template)

i'm very new to SVG so this maybe a stupid question, but i would like to create an SVG shape based on some markup for example, lets say i want to create a lot of cards that have this markup: var svg_test_label = [ '', …
Mr. Sam
  • 790
  • 2
  • 9
  • 31
0
votes
1 answer

Specifying style of node through function

In d3 I was able to specify the fill style of an element using a function. For example color = d3.scale.category10().domain(d3.range(0,10)); ... .style( "fill", function(d) { return color(d); } ) Is there a way to do the same thing in dagre-d3? I…
gaitat
  • 12,449
  • 4
  • 52
  • 76
0
votes
1 answer

dagre d3 make edges from parent to all its children

I am using dagre d3 for visualisation of data, making ordered diagram and I am stuck at setting up edges. Take a look at this piece of code where I am stucked /*data has this template level: type: label f.e.: 0: call: label1 //child of root …
Đrakenus
  • 540
  • 3
  • 20
0
votes
1 answer

graph.hasEdge function in dagre-d3/graphlib

Has anyone used the graph.hasEdge function in dagre-d3/graphlib to see if an edge exists between two nodes. I'm talking about an API which takes in two arguments basically the two nodes and checks if an edge exists between the two. My problem is…
IAMTubby
  • 1,627
  • 4
  • 28
  • 40
-1
votes
1 answer

How do I use the 'make' command to build the dagre-d3 graph library?

Within a \projects directory I followed the instructions on the dagre-d3 Github page and typed $ npm install dagre-d3. Then I entered the $ make command as per the build instructions. Nothing happened. The error message make: ** No targets specified…
Adam S
  • 509
  • 10
  • 24
-2
votes
1 answer

Dagre-D3 or D3 not working on different server

Hy, so unfortunately i cant post my hole source code, neither can i link to it. But because of this, I'm ok if i don't get a concrete answer, just some guidance. So my situation is this: I have made, with the help of dagre-d3.js and d3.js a…
Mr. Sam
  • 790
  • 2
  • 9
  • 31
1 2 3 4 5
6