d3-dot-graph
d3-dot-graph copied to clipboard
Cannot read property 'links' of null
When trying to run the example, nothing is displayed and in the console the error "Uncaught TypeError: Cannot read property 'links' of null" is thrown. Additionally the parameter "graph" is null instead of the graph.
My guess is that it fails to load data. How do you run it?
I run it on XAMPP 7.1.1 with a Chrome 51 derivate (can't use a newer Version because of security policies)
Ok. I see. So let me check again. You get this error also when you open this link example right? If so I need to check for compatibility issues.
The error is also thrown ehen using the link.
I got this error as well, not with the example but with other dot files. When I'm catching the exception like this:
d3.dot("the.dot", function(graph, error) {//the.dot
if (error) throw error;
I get following error log:
ReferenceError: _ is not defined
at peg$c23 (d3-dot-graph.js:205)
at peg$parseaList (d3-dot-graph.js:1287)
at peg$parseattrListBlock (d3-dot-graph.js:1138)
at peg$parseattrList (d3-dot-graph.js:1058)
at peg$parseattrStmt (d3-dot-graph.js:768)
at peg$parsestmt (d3-dot-graph.js:732)
at peg$parsestmtList (d3-dot-graph.js:590)
at peg$parsegraphStmt (d3-dot-graph.js:505)
at peg$parsestart (d3-dot-graph.js:426)
at Object.peg$parse [as parse] (d3-dot-graph.js:2415)
I'm also getting the same error with other dot files
I got the same error :( did you find any workaround?