views:

777

answers:

3

I am looking for a javascript library which plots networks with the nodes arranged in a circle.

There are some other good questions about javascript visualisation in general, but most of the things referenced seem to be quite heavyweight toolkits. I am looking for a simple API that lets me pass in an array of string pairs representing connections, and then plots the nodes of the resulting graph in a circle, with interior lines joining the connected nodes.

Requirements: javascript (not flash), free, available for offline use

A: 

Take a lookat http://raphaeljs.com/

graphicdivine
That seems to be a drawing library: I'm looking for something which will actually have a "draw_graph(data)" function rather than having to do my own circles/lines etc.
kdt
Apologies: look further at http://g.raphaeljs.com/
graphicdivine
g.raphaeljs.com is for visualizing pie/bar charts - not a networks/graphs.
James Kolpack
+2  A: 

I recently had a similar need and found that the best free graph visualization was Javascript InfoVis Tooklit. I couldn't find anything more lightweight that would also display a reasonable connected graph. Fortunately, there are a good number of examples/tutorials to learn how to set it up for your specific application.

James Kolpack
So would my "circle of nodes" case be an instance of their HyperTree class?
kdt
I was thinking the RGraph class since it's a graph rather than a tree - but by all means, play around with the demos until you find the one closest to what you are envisioning.
James Kolpack
A: 

Have you taken a look at Google's Visualisation APIs? It's Javascript, and you can run it offline. (plus they have some tools in Python/Java for converting your data to use...etc).

Pydroid
From the Google Visualization API FAQ:`Can I use visualizations offline?No; your computer must have live access to http://www.google.com/jsapi in order to use visualizations`
kdt