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

Wrong Graph init in some visualizations? #167

Open
janschejbal opened this issue Sep 20, 2013 · 0 comments
Open

Wrong Graph init in some visualizations? #167

janschejbal opened this issue Sep 20, 2013 · 0 comments

Comments

@janschejbal
Copy link

The loader as well as some visualizations initialize the graph as follows:

new Graph(this.graphOptions, this.config.Node, this.config.Edge, this.config.Label);

However, some visualizations leave out the Label:

this.graph = new Graph(this.graphOptions, this.config.Node, this.config.Edge);

This leads to errors like "TypeError: prefixConfig is undefined" in getDataInternal. If the loader is used, the graph is correctly initialized, so this error is masked. However, if one attempts to add nodes programmatically, the error occurs. Changing the initialization in the respective visualization to include the this.config.Label fixes the issue.

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

1 participant