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

DataSet.add(edgeArray) adds labels to center of the canvas instead 'middle' position #4239

Aridmango opened this Issue Jan 31, 2019 · 3 comments


None yet
3 participants
Copy link

Aridmango commented Jan 31, 2019

Working with vis 4.18.1 networks on Chrome OS, Windows 10 computer. Has anyone see any behavior with their labels similar to the screenshot? This only seems to be happening when I call the add method of Dataset and pass in an object array of edges. One of the labels was rendered correctly in the middle position. Before I called Dataset.add(edgesArray) the labels of the graph were working correctly. I can post additional information if this behavior hasn't been seen before.


This comment has been minimized.

Copy link

mojoaxel commented Feb 1, 2019

Please provide a minimal code example that demonstrates your issue. We recommend using jsbin for that.

@Aridmango Also: You you please try this with the latest version. Thanks!


This comment has been minimized.

Copy link

softwareCobbler commented Feb 3, 2019

spitballing here - you say the edge labels were working fine before calling dataset.add, perhaps you want to dataset.update instead?


This comment has been minimized.

Copy link

Aridmango commented Feb 4, 2019

Did some troubleshooting and figured out what was causing the problem. My edges have value properties, and if one of the values happens to be an object instead of a string or number then it resulted in a network with edges being rendered in the middle. I was unable to replicated it in jsbin sorry, but hopefully this description helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment