VivaGraphJS
                                
                                
                                
                                    VivaGraphJS copied to clipboard
                            
                            
                            
                        Adding text label functionality
I found VivaGraphJS so I can visualize some data I generated through java. I'd like to be able to label the nodes with some text (not image) to represent the state. How will I do that. I'm looking for something like graph.addNode(1,"state A"), and also change the color of edge and node. Sorry I've never done JavaScript so I'm looking for help here instead of spending hours searching. Thanks.
@anvaka
WebGL doesn't have means of rendering text. What I was usually doing is listen to node hover events and then just show Dom element on top.
If you are using SVG renderer you can just create a group and put both circle and text in there.
how can I set some edges to red and some to blue in same graph?
@anvaka Hi