Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Animate filling color to nodes and edges for showing paths and nodes visited. #4275

Open
batman6 opened this issue Mar 19, 2019 · 1 comment

Comments

@batman6
Copy link

batman6 commented Mar 19, 2019

I want to animate the color filling for nodes and edges so as to show the path and nodes visited. There is no option I have found till now. Can anyone help me with this?
Suppose,
edges:{
from:1,
to:2
}

if I have a test data that matches this edge the animation for color must kick in i.e,
testEdge:{
from:1,
to:2
}
animation for coloring edge from 1 to 2

@de7ign
Copy link

de7ign commented May 8, 2019

@batman6
{ from: 1, to: 2, color: { color:'#FFFFFF'} }

I'm able to perform the above task by adding the color: { color:'#FFFFFF'} to the edge dataset.
the same can be performed in nodes dataset.

this doc might help
http://visjs.org/docs/network/edges.html
http://visjs.org/docs/data/dataset.html

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

No branches or pull requests

2 participants