almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

batman6 opened this issue · comments

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

@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