almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

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

Open batman6 opened 5 years ago

batman6 commented 5 years ago

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 commented 5 years ago

@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