Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fengsee opened this issue Dec 9, 2013 · 4 comments
Open

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

Fengsee opened this issue Dec 9, 2013 · 4 comments

Comments

@Fengsee
Copy link

Fengsee commented Dec 9, 2013

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
Copy link
Contributor

What's your browser? IE? Chrome?

@Fengsee
Copy link
Author

Fengsee commented Dec 9, 2013

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

@Fengsee
Copy link
Author

Fengsee commented Dec 9, 2013

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
Copy link
Author

Fengsee commented Dec 19, 2013

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 [email protected]

What's your browser? IE? Chrome?

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

ÍõÎÄÉù

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants