This is a Proof of Concept (from GTUG BootCamp 2010), which is: Try to code a complete client side data-load (from some REST services) and graph visualization using Neo4j REST server, the Java Script Visualization Framework JIT and Google Web Toolkit.
This is a followup to Part 2
createGraph(String injectedDivId) and for loading the JSON data
void loadData(String data). This is what I am calling in my “final” call back handler. See the last lines of MySampleApplication.java below the
static JITGraph property. (There you can choose if you want to see a RGraph or a ForceDirected graph as well… change the new statement).
The functionality of the Button remains the same, start the loading of the graph JSON object and (new:) call the initializer of the JIT graph. Have fun 🙂
Steps to test:
- Set up Eclipse or use Intellij IDEA (which is a clear recommendation)
- install GWT
- install Google App Engine for Java
- install Neo4j REST server
- insert the Matrix Example from there
- clone the sources. If you are using IDEA its easy, since I checked in an IDEA project. Otherwise you will have to set up a Eclipse project using the sources.
If you have done right you have setup Neo4j with the following graph:
If you are using the ForceDirected graph you should see this:
If you are using the RGraph graph you should see this, displaying the relation distance as circles with a great on click animation: