@@ -5,10 +5,23 @@ Dygraphs-GWT is a wrapper for the [dygraphs][0] chart library.
5
5
The wrapper makes it easy to use dygraphs in any GWT application by providing a
6
6
type-safe abstraction of the dygraphs API.
7
7
8
+
8
9
## How do I use it?
9
10
10
- TODO
11
+ Following steps are required:
11
12
13
+ ``` JAVA
14
+ GeneViewer geneviewer = new GeneViewer ();
15
+ geneviewer. load(new Runnable () {
16
+ @Override
17
+ public void run () {
18
+ GWT . log(" GeneViewer loaded" );
19
+ // Interact with sketch
20
+ JsArrayMixed data = getData();
21
+ geneviewer. setGeneData(data);
22
+ }
23
+ });
24
+ ```
12
25
13
26
14
27
## How do I install it?
@@ -24,7 +37,16 @@ section:
24
37
</dependency >
25
38
```
26
39
27
- You can also download the [ jar] [ 1 ] directly or check out the source using git
40
+ GeneViewer uses [ GWT 2.8's] [ 1 ] new [ JSInterop feature] [ 2 ] and thus it has to be enabled in the GWT compiler args.
41
+ For maven:
42
+ ``` xml
43
+ <compilerArgs >
44
+ <compilerArg >-generateJsInteropExports</compilerArg >
45
+ </compilerArgs >
46
+ ```
47
+ or passing it to the compiler via ` -generateJsInteropExports `
48
+
49
+ You can also download the [ jar] [ 3 ] directly or check out the source using git
28
50
from < https://github.com/timeu/dygraphs-gwt.git > and build it yourself. Once
29
51
you've installed Dygraphs-GWT, be sure to inherit the module in your .gwt.xml
30
52
file like this:
@@ -35,10 +57,11 @@ file like this:
35
57
36
58
## Where can I learn more?
37
59
38
- * For more details on the Dygraphs-GWT API, consult the [ Javadoc] [ 2 ] .
39
- * Check out the [ sample app] [ 3 ] for a full example of using Dygraphs-GWT.
60
+ * Check out the [ sample app] [ 4 ] ([ Source Code] [ 5 ] ) for a full example of using GeneViewer.
40
61
41
62
[ 0 ] : https://http://dygraphs.com/
42
- [ 1 ] : http://search.maven.org/remotecontent?filepath=com/github/timeu/dygraphs-gwt/dygraphs-gwt/1.0.0/dygraphs-gwt-1.0.0.jar
43
- [ 2 ] : http://timeu.github.io/dygraphs-gwt/javadoc/
44
- [ 3 ] : https://github.com/timeu/dygraphs-gwt/tree/master/dygraphs-gwt-sample/src/main/java/sample/client
63
+ [ 1 ] : http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_0_BETA1
64
+ [ 2 ] : https://docs.google.com/document/d/10fmlEYIHcyead_4R1S5wKGs1t2I7Fnp_PaNaa7XTEk0/edit#heading=h.o7amqk9edhb9
65
+ [ 3 ] : https://github.com/timeu/dygraphs-gwt/releases
66
+ [ 4 ] : http://timeu.github.io/dygraphs-gwt
67
+ [ 5 ] : https://github.com/timeu/dygraphs-gwt/tree/master/dygraphs-gwt-sample/src/main/java/sample/client
0 commit comments