Closed doolingdavidrs21 closed 2 years ago
you need to set color for each node or edge by id
{
'nodes':[
{'id': 1, 'color': color_A},
{'id': 2, 'color': color_B},
{'id': 3, 'color': color_C},
{'id': 4, 'color': color_D}
],
'edges':[
{'id':'1-3', 'from': 1, 'to': 3},
{'id':'1-2', 'from': 1, 'to': 2}
]
}
See documents of vis.js : https://visjs.github.io/vis-network/docs/network/
IS there a way within the options argument to set the node label colors, either globally for all nodes or ideally individually for different nodes, looping through the nodes?