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

I can't seem to change node label color and size at the same time. #113

Open
object404 opened this issue Sep 3, 2019 · 2 comments
Open
Labels
question Further information is requested

Comments

@object404
Copy link

So I'm using this code to try to change node size/label color on click:

network.body.nodes[id].options.size = newSize;
network.body.nodes[id].options.font.color = newColor;

Then I follow it with:

network.body.emitter.emit('_dataChanged');
network.redraw();

The problem is that if I call network.body.emitter.emit('_dataChanged'), the node size no longer changes, but label color changes. If I don't call it, node size changes, but label color no longer changes.

Is this a bug? What is the proper way to change node size/label color at the same time?

Googling and searching on stack overflow yield few results and a bunch of 404 links to old Vis JS doc/example links that are now down.

Thanks!

@Thomaash
Copy link
Member

Thomaash commented Sep 3, 2019 via email

@Thomaash
Copy link
Member

Thomaash commented Sep 3, 2019 via email

@mojoaxel mojoaxel added the question Further information is requested label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants