TBEDP / datavjs

DataV
http://datavlab.org/datavjs/
Other
891 stars 319 forks source link

DataV.Force(): throw the exception "undefined is not a function " #143

Open Fengsee opened 10 years ago

Fengsee commented 10 years ago

Hi! This is the first time for me to construct a relation graph using Datavjs. I get a exception like "undefined is not a function " when I try to run my webpage with using { var net = new DataV.Force("chart-relation",{"width": 700, "height": 500}); } to create my object. I have readed the "getting start.md" doc, but I just can't find the "compatible.js" in the master folder. Except that, I have included the all files needed. Now I get the exception related above. If you have any solution for this, please let me konw. Thanks advanced!

JacksonTian commented 10 years ago

What's your browser? IE? Chrome?

Fengsee commented 10 years ago

Chrome. Thanks. I have solved it. I find the compatible.js on the web. So the problem is solved.

Fengsee commented 10 years ago

Problem again... I try to use force graph, but I'm not clear about the configuration of source. Here is what I code.{ var source=[[id, name, value, source, target, lvalue]];} I write it by following the map in setSource function like this.{id: 0, name: 1, nValue: 2, source: 3, target: 4, lValue: 5}. But there are not any link line on my page. Do I have any mistake? Thanks a lot. @JacksonTian

Fengsee commented 10 years ago

Thanks a lot. I use Chrome. Actually, I have solved my problems. I found some grammatical mistakes in my code. Thanks again.

2013/12/9 Jackson Tian notifications@github.com

What's your browser? IE? Chrome?

¡ª Reply to this email directly or view it on GitHubhttps://github.com/TBEDP/datavjs/issues/143#issuecomment-30112284 .

ÍõÎÄÉù