gmamaladze / d3-dot-graph

This module provides D3js compatible library to parse and load files in graphviz DOT (.dot) (graph description language) format.
MIT License
38 stars 7 forks source link

Cannot read property 'links' of null #1

Open baswag opened 7 years ago

baswag commented 7 years ago

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.

gmamaladze commented 7 years ago

My guess is that it fails to load data. How do you run it?

baswag commented 7 years ago

I run it on XAMPP 7.1.1 with a Chrome 51 derivate (can't use a newer Version because of security policies)

gmamaladze commented 7 years ago

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.

baswag commented 7 years ago

The error is also thrown ehen using the link.

paulbauriegel commented 6 years ago

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)
mingfang commented 5 years ago

I'm also getting the same error with other dot files

dregaladodiaz commented 3 years ago

I got the same error :( did you find any workaround?