Visualizing JavaScript plots with paths

I am looking for a library to render a graph on a web page.

I would like to visualize a graph consisting of nodes connected by edges. In this graph, I would like to show several paths (which cross several nodes). It should be possible for multiple routes to have the same edge and assign different colors to different routes. The chart layout should be done automatically.

I've seen many libraries for graph rendering, but none of them seem to support adding paths. Does anyone know of a library like this?

Basically, I would like to create something like this: http://bgplay.routeviews.org/bgplay.png

+3


source to share


2 answers


three such libs that I know you can go with vis.js http://visjs.org/ , Sigma.js http://sigmajs.org/ , d3.js http://d3js.org/



Check the above network examples. Hope it helps.

+2


source


I agree with the comment above, d3.js is super extensible even if there is no graphing or route function. And I'm pretty sure the same is true for processing.js. But have you tried Cytoscape.js as well ? It is network graph specific and has a built in function called breadthFirstSearch that returns a path (which you can style and color). In addition, it has built-in support for many edges (incident to the same pair of nodes). I would give it a try, and if you find anything interesting please report here! Interest Ask.



0


source







All Articles