Graph GWT documentation

There is a GWT wrapper available to use the Graph inside Google Web Toolkit (GWT). This documentation assumes you have Eclipse installed, and have GWT installed in Eclipse.

Short guide

To use the GWT version of the Graph, create a GWT project. Put a copy of the modules gwt-links-graph.jar and gwt-visualization.jar in a subfolder of your project (for example lib), and add both jar-modules to your project via "Build path", "Configure Build Path...", "Add JARs...". Then, add the following lines to the module file YourProject.gwt.xml:

<!-- Other module inherits                                      -->
<inherits name='com.google.gwt.visualization.Visualization'/> 
<inherits name='com.chap.links.Graph'/>

<!-- External stylesheets                                       -->
<!-- Include at least one stylesheet, else the stylesheets in   -->
<!-- external modules like gwt-links-graph.jar are not loaded...-->
<stylesheet src=""></stylesheet>  

Thats all, now you can use the Graph.

Custom stylesheet

The style of the Graph can be changed by applying a customized stylesheet. This stylesheet cannot be referenced in the main HTML page of your project, because the stylesheet must be loaded after the graph is loaded. Therefore, the stylesheet must be placed in a folder public, which must be located in the same folder as the module file YourProject.gwt.xml and the folders client, server, and shared. To let GWT load the stylesheet, add a reference to the stylesheet in the module file YourProject.gwt.xml:

<!-- Other module inherits                                      -->
<inherits name='com.google.gwt.visualization.Visualization'/> 
<inherits name='com.chap.links.Graph'/>

<!-- Customized stylesheet for the Graph                        -->
<stylesheet src="myCustomStylesheet.css"></stylesheet>    

Documentation

At the moment there is no documentation available for the GWT version of the Graph. Please use the javascript documentation, which describes the available methods, data format, options, events, and styles.

Javascript documentation

Reference sites

http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted